Package-level declarations

Types

Link copied to clipboard
typealias AssertBody = suspend () -> Any?
Link copied to clipboard
typealias LogBody = suspend () -> Any??
Link copied to clipboard
sealed class LogLevel : Comparable<LogLevel>

Functions

Link copied to clipboard
suspend fun CommandContext.assert(value: Boolean, failureMessage: AssertBody = null)
Link copied to clipboard
suspend fun CommandContext.assertEqual(left: Any?, right: Any?, failureMessage: AssertBody = null)
Link copied to clipboard
suspend fun CommandContext.assertFalse(value: Boolean, failureMessage: AssertBody = null)
Link copied to clipboard
suspend fun CommandContext.assertNotEqual(left: Any?, right: Any?, failureMessage: AssertBody = null)
Link copied to clipboard
suspend fun CommandContext.log(level: LogLevel, body: LogBody = null): Message?
suspend fun EventContext<*>.log(level: LogLevel, body: LogBody = null): Message?
Link copied to clipboard
suspend fun CommandContext.logDebug(body: LogBody = null): Message?
suspend fun EventContext<*>.logDebug(body: LogBody = null): Message?
Link copied to clipboard
suspend fun CommandContext.logError(body: LogBody = null): Message?
suspend fun EventContext<*>.logError(body: LogBody = null): Message?
Link copied to clipboard
suspend fun CommandContext.logInfo(body: LogBody = null): Message?
suspend fun EventContext<*>.logInfo(body: LogBody = null): Message?
Link copied to clipboard
suspend fun Extension.logRaw(builder: MessageCreateBuilder.() -> Unit): Message?
Link copied to clipboard
suspend fun CommandContext.logWarning(body: LogBody = null): Message?
suspend fun EventContext<*>.logWarning(body: LogBody = null): Message?