mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
feat: add pick, remove, and update the general /roleypoly command
This commit is contained in:
parent
a4207d5713
commit
1f55d0370a
10 changed files with 251 additions and 34 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue