Skip to content
Interfacecorev0.14.0

DispatchOrigin

The user, guild, and channel that one interaction or event came from.

interface DispatchOrigin

channelId

The channel id, or null when there isn't one.

readonly channelId: string | null

guildId

The guild id, or null outside a guild.

readonly guildId: string | null

guildLocale

The guild's preferred language, or null outside a guild.

readonly guildLocale: Locale | null

userId

The id of the user who triggered it, or null on an event without a user.

readonly userId: string | null

userLocale

The language that the user picked in Discord, or null on a gateway event because a discord.js User doesn't have one.

readonly userLocale: Locale | null