Skip to content

NOCOM-BOT/mod_discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mod_discord for NOCOM_BOT

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

Login data parameter

{
    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 to true.

About

NOCOM_BOT Discord bot module. Self-explanatory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published