feat: add optional role icon support and validation for booster roles

This commit is contained in:
MythEclipse
2026-05-15 23:23:16 +07:00
parent c6b1087eb3
commit 9d0322b118
5 changed files with 147 additions and 3 deletions
+7
View File
@@ -9,6 +9,7 @@ export const boosterRoleCommand = new SlashCommandBuilder()
.setDescription("Claim a new custom cosmetic booster role")
.addStringOption((option) => option.setName("name").setDescription("Role name").setRequired(true))
.addStringOption((option) => option.setName("color").setDescription("Hex color like #AABBCC"))
.addAttachmentOption((option) => option.setName("icon").setDescription("Optional role icon image"))
)
.addSubcommand((command) =>
command
@@ -22,4 +23,10 @@ export const boosterRoleCommand = new SlashCommandBuilder()
.setDescription("Recolor your bot-managed booster role")
.addStringOption((option) => option.setName("color").setDescription("Hex color like #AABBCC").setRequired(true))
)
.addSubcommand((command) =>
command
.setName("icon")
.setDescription("Set an optional icon on your bot-managed booster role")
.addAttachmentOption((option) => option.setName("image").setDescription("Role icon image").setRequired(true))
)
.addSubcommand((command) => command.setName("delete").setDescription("Delete your bot-managed booster role"));