feat: add pick, remove, and update the general /roleypoly command

This commit is contained in:
41666 2021-08-01 20:18:07 -04:00
parent a4207d5713
commit 1f55d0370a
10 changed files with 251 additions and 34 deletions

View file

@ -32,6 +32,7 @@ resource "discord-interactions_global_command" "pick-role" {
name = "role"
description = "The role you want"
type = 8
required = true
}
}
@ -40,12 +41,29 @@ resource "discord-interactions_guild_command" "pick-role" {
guild_id = each.value
name = "pick-role"
description = "Pick a role! (See which ones can be picked with /pickable-roles)"
description = "**[TEST]** Pick a role! (See which ones can be picked with /pickable-roles)"
option {
name = "role"
description = "The role you want"
type = 8
required = true
}
}
resource "discord-interactions_guild_command" "remove-role" {
for_each = local.internalTestingGuilds
guild_id = each.value
name = "remove-role"
description = "**[TEST]** Pick a role to remove (See which ones can be removed with /pickable-roles)"
option {
name = "role"
description = "The role you want to remove"
type = 8
required = true
}
}