Package-level declarations

Types

Link copied to clipboard
interface ChannelEvent

Generic interface for custom events that can contain channel behaviors. Mostly used by checks.

Link copied to clipboard
interface GuildEvent

Generic interface for custom events that can contain guild behaviors. Mostly used by checks.

Link copied to clipboard

Generic interface for custom events that can contain member behaviors. Mostly used by checks.

Link copied to clipboard
interface MessageEvent

Generic interface for custom events that can contain message behaviors. Mostly used by checks.

Link copied to clipboard
interface RoleEvent

Generic interface for custom events that can contain role behaviors. Mostly used by checks.

Link copied to clipboard
interface UserEvent

Generic interface for custom events that can contain user behaviors. Mostly used by checks.

Functions

Link copied to clipboard
inline suspend fun <T : Channel> ChannelEvent.getChannelOf(): T

Get a channel object of the given type, or throw if one can't be retrieved or cast.

Link copied to clipboard
inline suspend fun <T : Channel> ChannelEvent.getChannelOfOrNull(): T?

Get a channel object of the given type, or return null if one can't be retrieved or cast.