diff options
| author | Fuwn <[email protected]> | 2025-11-23 19:12:43 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-11-23 19:12:43 -0800 |
| commit | a846ff2547f807a68522b36e447df6990e024aa2 (patch) | |
| tree | 568112ab71d5c2965c18022a9ccc83a4862065cf /packages/interactions/discord/commands/index.ts | |
| parent | feat(gateway:reactionRoles): Add additional handler (diff) | |
| download | umabotdiscord-a846ff2547f807a68522b36e447df6990e024aa2.tar.xz umabotdiscord-a846ff2547f807a68522b36e447df6990e024aa2.zip | |
feat(interactions): Add role slash command
Diffstat (limited to 'packages/interactions/discord/commands/index.ts')
| -rw-r--r-- | packages/interactions/discord/commands/index.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/interactions/discord/commands/index.ts b/packages/interactions/discord/commands/index.ts index b3d0d84..f5fda7a 100644 --- a/packages/interactions/discord/commands/index.ts +++ b/packages/interactions/discord/commands/index.ts @@ -147,3 +147,22 @@ export const TOGGLE_PRIVILEGED_ACCESS_COMMAND: DiscordCommand = { }, ], }; + +export const ROLE_COMMAND: DiscordCommand = { + name: "role", + description: "Toggle a role for a user", + options: [ + { + type: DISCORD_APPLICATION_COMMAND_OPTION_TYPES.USER, + name: "user", + description: "User to toggle the role for", + required: true, + }, + { + type: DISCORD_APPLICATION_COMMAND_OPTION_TYPES.ROLE, + name: "role", + description: "Role to toggle for the user", + required: true, + }, + ], +}; |