initial commit

This commit is contained in:
2026-03-14 20:56:04 +01:00
commit 9b1aa393b3
38 changed files with 1517 additions and 0 deletions

47
discord/server.tf Normal file
View File

@@ -0,0 +1,47 @@
data "discord_local_image" "logo" {
file = "terraform-icon.png"
}
resource "discord_server" "terraform_playground" {
name = "Terraform Playground"
region = "rotterdam"
default_message_notifications = 0
icon_data_uri = data.discord_local_image.logo.data_uri
}
resource "discord_category_channel" "chatting" {
name = "Chatting"
server_id = discord_server.terraform_playground.id
position = 0
}
resource "discord_text_channel" "general" {
name = "general"
category = discord_category_channel.chatting.id
server_id = discord_server.terraform_playground.id
position = 0
}
resource "discord_message" "hello_world" {
channel_id = discord_text_channel.general.id
embed {
title = "Hello World"
footer {
text = "Bye World"
}
fields {
name = "foo"
value = "bar"
inline = true
}
fields {
name = "bar"
value = "baz"
inline = false
}
}
}