summaryrefslogtreecommitdiff
path: root/src/discord
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-18 15:03:56 -0700
committerFuwn <[email protected]>2025-09-18 15:03:56 -0700
commit4eeb271c6a7a39edbaa1ee021234f6325d40b8b8 (patch)
tree98f8af46e531321328c761f084bf8f9da627782d /src/discord
parentfix(server): Correct colour role IDs (diff)
downloadumabotdiscord-4eeb271c6a7a39edbaa1ee021234f6325d40b8b8.tar.xz
umabotdiscord-4eeb271c6a7a39edbaa1ee021234f6325d40b8b8.zip
feat: Add roleplay-serious command
Diffstat (limited to 'src/discord')
-rw-r--r--src/discord/commands.ts33
-rw-r--r--src/discord/interfaces.ts2
2 files changed, 35 insertions, 0 deletions
diff --git a/src/discord/commands.ts b/src/discord/commands.ts
index 85ff7c0..652a20a 100644
--- a/src/discord/commands.ts
+++ b/src/discord/commands.ts
@@ -75,3 +75,36 @@ export const COLOURS_COMMAND: DiscordCommand = {
name: "colours",
description: "Show the distribution of colour roles in the server",
};
+
+export const ROLEPLAY_SERIOUS_COMMAND: DiscordCommand = {
+ name: "roleplay-serious",
+ description: "Manage the serious roleplay role (Admin/Roleplay Curator only)",
+ options: [
+ {
+ type: 3,
+ name: "action",
+ description: "Action to perform on the role",
+ required: true,
+ choices: [
+ {
+ name: "Add Role",
+ value: "add",
+ },
+ {
+ name: "Remove Role",
+ value: "remove",
+ },
+ {
+ name: "Toggle Role",
+ value: "toggle",
+ },
+ ],
+ },
+ {
+ type: 6,
+ name: "user",
+ description: "User to perform the action on",
+ required: true,
+ },
+ ],
+};
diff --git a/src/discord/interfaces.ts b/src/discord/interfaces.ts
index 6b26876..63b8e82 100644
--- a/src/discord/interfaces.ts
+++ b/src/discord/interfaces.ts
@@ -29,6 +29,8 @@ export interface DiscordInteraction {
username: string;
avatar?: string;
};
+ roles?: string[];
+ permissions?: string;
};
}