GlobalCommandContext

interface GlobalCommandContext

Functions

getChannel
Link copied to clipboard
abstract suspend fun getChannel(): MessageChannel

The channel that this command was used in.

getGuild
Link copied to clipboard
abstract suspend fun getGuild(): Guild?

The server that this command was used in. Is null if the command was used in a DM.

Properties

guildId
Link copied to clipboard
abstract val guildId: Snowflake?

The ID of the server that this command was used in. Is null if the command was used in a DM.

member
Link copied to clipboard
abstract val member: Member?

The user as a Member that invoked this command. Is null if the command was used in a DM.

Inheritors

GlobalMessageCommandContext
Link copied to clipboard
GlobalSlashCommandContext
Link copied to clipboard
GlobalUserCommandContext
Link copied to clipboard

Sources

jvm source
Link copied to clipboard