initial commit
This commit is contained in:
47
discord/server.tf
Normal file
47
discord/server.tf
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user