switch all interactions registrations to global

This commit is contained in:
41666 2022-02-04 21:32:22 -05:00
parent 5aa5a6ae1c
commit 0a37eff047

View file

@ -14,10 +14,9 @@ resource "discord-interactions_global_command" "pickable-roles" {
description = "See the roles you can pick from" description = "See the roles you can pick from"
} }
resource "discord-interactions_guild_command" "pick-role" { resource "discord-interactions_global_command" "pick-role" {
name = "pick-role" name = "pick-role"
description = "Pick a new role (see /pickable-roles for a full list)" description = "Pick a new role (see /pickable-roles for a full list)"
guild_id = "386659935687147521"
option { option {
name = "role" name = "role"
@ -27,10 +26,9 @@ resource "discord-interactions_guild_command" "pick-role" {
} }
} }
resource "discord-interactions_guild_command" "remove-role" { resource "discord-interactions_global_command" "remove-role" {
name = "remove-role" name = "remove-role"
description = "Remove a role you already have" description = "Remove a role you already have (see /pickable-roles for a full list)"
guild_id = "386659935687147521"
option { option {
name = "role" name = "role"