InstallContext
interface in meocord/common Since 4.1.0
interface InstallContextWhere an interaction happened, as getInstallContext reports it.
Members
where
where: 'guild' | 'bot-dm' | 'private-channel''guild' for a server; 'bot-dm' for a direct message with the bot; 'private-channel' for a
direct or group message between users, reachable only by a user-installed app.
botInstalled
botInstalled: booleanWhether the bot itself is present where the interaction happened: a server that installed the app, or a direct message with the bot. Only then can it use the channel API; it says nothing about the bot's permissions in the channel.