feat: add optional role icon support and validation for booster roles
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user