Package-level declarations
Types
Link copied to clipboard
class RestActionReasonContext(reason: String) : AbstractCoroutineContextElement, ThreadContextElement<String?>
ThreadLocalReason context element for CoroutineContext.
Functions
Link copied to clipboard
Same as IGuildChannelContainer.getChannelById but with a reified type parameter.
Link copied to clipboard
Same as Mentions.getChannels but with a reified type parameter.
Link copied to clipboard
Same as Mentions.getChannelsBag but with a reified type parameter.
Link copied to clipboard
Link copied to clipboard
Same as JDA.listenOnce but with a reified type parameter.
Link copied to clipboard
suspend fun <R> withRestActionReasonContext(reason: String, block: suspend CoroutineScope.() -> R): R
Applies the provided reason as the default reason for all AuditableRestAction in the block.