net.bjoernpetersen.musicbot.api.loader.NoResource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of musicbot Show documentation
Show all versions of musicbot Show documentation
Core library of MusicBot, which plays music from various providers.
package net.bjoernpetersen.musicbot.api.loader
import net.bjoernpetersen.musicbot.spi.loader.Resource
/**
* A resource which actually isn't one. It is always valid and all methods are basically no-ops.
*/
object NoResource : Resource {
override suspend fun free() = Unit
override val isValid
get() = true
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy