Name | discord application|slash|message|user command |
Event Lines | discord application|slash|message|user command |
Triggers | when a Discord user uses an application command. |
Generated Examples | on discord application command:
after discord user command: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. name:<command_name> to only process the event for a specified Discord application command. Spaces are replaced with underscores. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.interaction> returns the DiscordInteractionTag.
<context.command> returns the DiscordCommandTag.
<context.options> returns the supplied options as a MapTag.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordApplicationCommandScriptEvent.java#L8 |
Name | discord button clicked |
Event Lines | discord button clicked |
Triggers | when a Discord user clicks a button. |
Generated Examples | on discord button clicked:
after discord button clicked: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. id:<button_id> to only process the event for a specified Discord button. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.interaction> returns the DiscordInteractionTag.
<context.button> returns the DiscordButtonTag.
<context.message> returns the relevant message the button was on.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordButtonClickedScriptEvent.java#L10 |
Name | discord channel created |
Event Lines | discord channel created |
Triggers | when a Discord channel is created. |
Generated Examples | after discord channel created: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. type:<type> to only process the event if the channel is a specific channel_type. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.channel> returns the new DiscordChannelTag.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordChannelCreateScriptEvent.java#L11 |
Name | discord channel deleted |
Event Lines | discord channel deleted |
Triggers | when a Discord channel is created. |
Generated Examples | on discord channel deleted:
after discord channel deleted: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.channel> returns the DiscordChannelTag.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordChannelDeleteScriptEvent.java#L11 |
Name | discord command autocomplete |
Event Lines | discord command autocomplete |
Triggers | when a Discord user queries a slash command option that can be autocompleted. |
Example |
|
Example |
|
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. name:<command_name> to only process the event for a specified Discord application command. Spaces are replaced with underscores. option:<option_name> to only process the event for a specified autocompletable option. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.interaction> returns the DiscordInteractionTag.
<context.command> returns the DiscordCommandTag.
<context.options> returns the supplied options as a MapTag.
<context.focused_option> returns the name of the focused option.
|
Determine | "CHOICES:<ListTag>" to suggest values to the Discord client. Up to 25 suggestions are allowed to be sent. Each entry can be an ElementTag which controls both the value and display of the choice or a MapTag with "name" and "value" keys to control both separately. |
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordCommandAutocompleteScriptEvent.java#L18 |
Name | discord message deleted |
Event Lines | discord message deleted |
Triggers | when a Discord user deletes a message. |
Generated Examples | after discord message deleted: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.old_message_valid> returns whether the old message is available (it may be lost due to caching).
<context.old_message> returns the original DiscordMessageTag (data may be missing if not cached).
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordMessageDeletedScriptEvent.java#L18 |
Name | discord message modified |
Event Lines | discord message modified |
Triggers | when a Discord user modified a message. |
Generated Examples | on discord message modified:
after discord message modified: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.new_message> returns the message as it now exists, as a DiscordMessageTag.
<context.old_message_valid> returns whether the old message is available (it may be lost due to caching).
<context.old_message> returns the original DiscordMessageTag (data may be missing if not cached).
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordMessageModifiedScriptEvent.java#L20 |
Name | discord message reaction added |
Event Lines | discord message reaction added |
Triggers | when a Discord user added a reaction to a message. |
Generated Examples | on discord message reaction added:
after discord message reaction added: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.message> returns the message.
<context.user> returns the user that added the reaction.
<context.reaction> returns the new reaction.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordMessageReactionAddScriptEvent.java#L10 |
Name | discord message reaction removed |
Event Lines | discord message reaction removed |
Triggers | when a Discord user removes a reaction from a message. |
Generated Examples | after discord message reaction removed: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.message> returns the DiscordMessageTag.
<context.user> returns the DiscordUserTag that removed the reaction.
<context.reaction> returns the old DiscordReactionTag.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordMessageReactionRemoveScriptEvent.java#L10 |
Name | discord message received |
Event Lines | discord message received |
Triggers | when a Discord bot receives a message. |
Generated Examples | on discord message received: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. message:<message> to only process the event if the message matches some matcher text, like 'message:*hello*' to match any message that contains the word 'hello'. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.new_message> returns the message received, as a DiscordMessageTag.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordMessageReceivedScriptEvent.java#L19 |
Name | discord modal submitted |
Event Lines | discord modal submitted |
Triggers | when a Discord user submits a modal. |
Generated Examples | on discord modal submitted: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. name:<modal_name> to only process the event for a specified Discord modal. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.interaction> returns the DiscordInteractionTag.
<context.name> returns the name of the modal.
<context.values> returns a MapTag of the values submitted by the user.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordModalSubmittedScriptEvent.java#L18 |
Name | discord selection used |
Event Lines | discord selection used |
Triggers | when a Discord user uses a selection menu. |
Generated Examples | after discord selection used:
on discord selection used: |
Switches | for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel. group:<group_id> to only process the event for a specified Discord group. id:<menu_id> to only process the event for a specified Discord selection menu. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.interaction> returns the DiscordInteractionTag.
<context.menu> returns the selection menu as a DiscordSelectionTag.
<context.option> returns the selected option as a MapTag.
<context.message> returns the relevant message the selection was on.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordSelectionUsedScriptEvent.java#L11 |
Name | discord user joins |
Event Lines | discord user joins |
Triggers | when a Discord user joins a guild. |
Generated Examples | after discord user joins:
on discord user joins: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.user> returns the DiscordUserTag.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordUserJoinsScriptEvent.java#L11 |
Name | discord user leaves |
Event Lines | discord user leaves |
Triggers | when a Discord user leaves a guild. |
Generated Examples | on discord user leaves:
after discord user leaves: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.user> returns the DiscordUserTag.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordUserLeavesScriptEvent.java#L11 |
Name | discord user nickname changes |
Event Lines | discord user nickname changes |
Triggers | when a Discord user's nickname change. |
Generated Examples | after discord user nickname changes: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.user> returns the DiscordUserTag.
<context.old_name> returns the user's previous nickname (if any).
<context.new_name> returns the user's new nickname (if any).
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordUserNicknameChangeScriptEvent.java#L12 |
Name | discord user role changes |
Event Lines | discord user role changes |
Triggers | when a Discord user's roles change. |
Generated Examples | after discord user role changes:
on discord user role changes: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.user> returns the DiscordUserTag.
<context.old_roles> returns a ListTag of the user's previous DiscordRoleTag set.
<context.new_roles> returns a ListTag of the user's new DiscordRoleTag set.
<context.added_roles> returns a ListTag of the user's added DiscordRoleTag set.
<context.removed_roles> returns a ListTag of the user's removed DiscordRoleTag set.
|
Group | Discord |
Requires | dDiscordBot |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordUserRoleChangeScriptEvent.java#L18 |
Name | discord thread archived |
Event Lines | discord thread archived |
Triggers | when a Discord thread is archived. |
Generated Examples | after discord thread archived: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. parent:<channel_id> to only process the event for a specific parent channel ID. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.thread> returns the thread DiscordChannelTag.
|
Group | Discord |
Requires | dDiscordBot |
Warning(s) | Not currently function. Will likely function in the future. |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordThreadArchivedScriptEvent.java#L11 |
Name | discord thread revealed |
Event Lines | discord thread revealed |
Triggers | when a Discord thread is pulled out of archive. |
Generated Examples | after discord thread revealed: |
Switches | for:<bot> to only process the event for a specified Discord bot.
group:<group_id> to only process the event for a specified Discord group. parent:<channel_id> to only process the event for a specific parent channel ID. |
Contexts | <context.bot> returns the relevant DiscordBotTag.
<context.group> returns the DiscordGroupTag.
<context.thread> returns the thread DiscordChannelTag.
|
Group | Discord |
Requires | dDiscordBot |
Warning(s) | Not currently function. Will likely function in the future. |
Source | https://github.com/DenizenScript/dDiscordBot/blob/master/src/main/java/com/denizenscript/ddiscordbot/events/DiscordThreadRevealedScriptEvent.java#L11 |