Register Discord Command (Effect) — DiSky

Addon: DiSky · Category: Effect · Since: 5.0.0-a2

Syntax

register [the] [discord] [application] command[s] %types.applicationcommand% (globally (in|for|of|on) [the] [bot] %types.bot%|in [the] [guild] %types.guild%)

Description

Adds or replaces (by name) one or more application commands of a bot (globally) or of a guild, leaving the other registered commands alone. Use 'update the discord commands' to replace the whole list. Once done, 'command id of' each command is known.

Examples

register the discord command {_cmd} in event-guild
register the discord commands {_a} and {_b} globally in event-bot

View source