mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-14 16:49:10 +00:00
fix tests, add /roleypoly and /pickable-roles handlers
This commit is contained in:
parent
8c61bfd4c7
commit
68b2b7323b
7 changed files with 174 additions and 14 deletions
|
@ -3,3 +3,39 @@ resource "discord-interactions_guild_command" "hello-world" {
|
|||
description = "Says hello!"
|
||||
guild_id = "386659935687147521"
|
||||
}
|
||||
|
||||
resource "discord-interactions_global_command" "roleypoly" {
|
||||
name = "roleypoly"
|
||||
description = "Find out how to use Roleypoly"
|
||||
}
|
||||
|
||||
resource "discord-interactions_global_command" "pickable-roles" {
|
||||
name = "pickable-roles"
|
||||
description = "See the roles you can pick from"
|
||||
}
|
||||
|
||||
resource "discord-interactions_guild_command" "pick-role" {
|
||||
name = "pick-role"
|
||||
description = "Pick a new role (see /pickable-roles for a full list)"
|
||||
guild_id = "386659935687147521"
|
||||
|
||||
option {
|
||||
name = "role"
|
||||
description = "The role you want"
|
||||
type = 8
|
||||
required = true
|
||||
}
|
||||
}
|
||||
|
||||
resource "discord-interactions_guild_command" "remove-role" {
|
||||
name = "remove-role"
|
||||
description = "Remove a role you already have"
|
||||
guild_id = "386659935687147521"
|
||||
|
||||
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