SlashUtils

object SlashUtils

Functions

Link copied to clipboard
fun RestAction<*>.asEphemeral(): RestAction<*>
Link copied to clipboard
inline suspend fun <E : GenericEvent> await(events: SharedFlow<GenericEvent>, timeout: Duration, crossinline filter: suspend (event: E) -> Boolean): E?
Link copied to clipboard

Discover the BaseSlashCommand inside the package.

Link copied to clipboard
inline fun <E : GenericEvent> on(events: SharedFlow<GenericEvent>, scope: CoroutineScope, noinline action: suspend (event: E) -> Unit): Job
Link copied to clipboard
fun Array<Permission>.toHuman(jump: Boolean = false): String

Convert an Array of Permission in a readable list.