You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm endeavoring to create a server using Terraform and your library, and while everything runs, and (apparently) a server is created, I'm not able to see any text channels, and get this error:
No Text Channels
You find yourself in a strange place. You don't have access to any text channels, or there are none in this server.
Here's the code:
variable "discord_token" {
description = "Discord token"
type = string
default = "<SECRET TOKEN GOES HERE>"
}
terraform {
required_version = ">= 0.13"
}
locals {
server_name = "Test Site"
region = "us-west"
}
terraform {
required_providers {
discord = {
source = "aequasi/discord"
version = "0.0.4"
}
}
}
provider discord {
token = var.discord_token
}
resource discord_server my_server {
name = local.server_name
region = local.region
default_message_notifications = 0
}
resource discord_category_channel public {
name = "public"
position = 0
server_id = discord_server.my_server.id
}
resource discord_text_channel welcome {
name = "welcome"
topic = "The welcome channel"
position = 0
category = discord_category_channel.public.id
server_id = discord_server.my_server.id
}
data discord_permission member {
view_channel = "allow"
send_messages = "allow"
}
resource discord_role_everyone everyone {
permissions = data.discord_permission.member.allow_bits
server_id = discord_server.my_server.id
}
I'm endeavoring to create a server using Terraform and your library, and while everything runs, and (apparently) a server is created, I'm not able to see any text channels, and get this error:
Here's the code:
And the result:
Any suggestions? And thanks. I hope that a simple example like the code above might help other folks get things working too.
The text was updated successfully, but these errors were encountered: