Name | discordconnect |
Related Guide Page | https://guide.denizenscript.com/guides/expanding/ddiscordbot.html |
Syntax | discordconnect [id:<id>] [token:<secret>] (intents:<intent>|...) |
Short Description | Connects to Discord. |
Full Description | Connects to Discord.
The connection will automatically specify the following gateway intents: GUILD_MEMBERS, GUILD_EMOJIS_AND_STICKERS, GUILD_MESSAGES, GUILD_MESSAGE_REACTIONS, DIRECT_MESSAGES, DIRECT_MESSAGE_REACTIONS, MESSAGE_CONTENT Optionally specify additional Gateway Intents to use as a list of any of: GUILD_BANS, GUILD_WEBHOOKS, GUILD_INVITES, GUILD_VOICE_STATES, GUILD_PRESENCES, GUILD_MESSAGE_TYPING, DIRECT_MESSAGE_TYPING use "intents:clear|SOME_INTENT|etc" (ie the first entry as "clear") to clear out default intents and use only your manually specified choices. Note that you need to enable the 'members' and 'message content' intent on your bot in Discord bot settings https://discord.com/developers/applications And also may need to manually enable other intents if you specify any. If the members intent is not enabled, a significant amount of dDiscordBot's functionality will not work. Store your Discord bot token in the Denizen secrets file at 'plugins/Denizen/secrets.secret'. Refer to SecretTag for usage info. The command should usually be ~waited for. See ~waitable. |
Related Tags | <discord[<bot_id>]> Returns the Discord bot for the given bot ID.
|
Usage Example |
|
Group | external |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/commands/DiscordConnectCommand.java#L52 |