This is a module that add supports for Discord bot account, following NOCOM_BOT module specification for interface - version 1.
This module uses discord.js as backend.
Status: Testing
{
token: string,
applicationID?: string,
intents: GatewayIntentsString[],
disableSlashCommand?: boolean
}
-
token
: Bot token, get from Discord Developer Portal -
applicationID
: Application ID, get from Discord Developer Portal. If this parameter does not exist, slash command will be disabled. -
intents
: Discord gateway intents. See Discord API docs for the full list of intents.-
If you need (and can) support message-based command calling,
Guilds
,GuildMessages
,MessageContent
must be enabled. Note that you must have message content intent to enable this. -
If you want to enable direct message, add
DirectMessages
. -
Slash command doesn't need any intents.
-
-
disableSlashCommand
: If you don't want to support slash command, set this totrue
.