1. Packages
  2. Discord Provider
  3. API Docs
  4. Message
discord 2.0.0 published on Friday, Mar 7, 2025 by lucky3028

discord.Message

Explore with Pulumi AI

A resource to create a message

Example Usage

Content Example

import * as pulumi from "@pulumi/pulumi";
import * as discord from "@pulumi/discord";

const helloWorld = new discord.Message("helloWorld", {
    channelId: _var.channel_id,
    content: "hello world",
});
Copy
import pulumi
import pulumi_discord as discord

hello_world = discord.Message("helloWorld",
    channel_id=var["channel_id"],
    content="hello world")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/discord/v2/discord"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := discord.NewMessage(ctx, "helloWorld", &discord.MessageArgs{
			ChannelId: pulumi.Any(_var.Channel_id),
			Content:   pulumi.String("hello world"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Discord = Pulumi.Discord;

return await Deployment.RunAsync(() => 
{
    var helloWorld = new Discord.Message("helloWorld", new()
    {
        ChannelId = @var.Channel_id,
        Content = "hello world",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.discord.Message;
import com.pulumi.discord.MessageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var helloWorld = new Message("helloWorld", MessageArgs.builder()
            .channelId(var_.channel_id())
            .content("hello world")
            .build());

    }
}
Copy
resources:
  helloWorld:
    type: discord:Message
    properties:
      channelId: ${var.channel_id}
      content: hello world
Copy

Embed Example

import * as pulumi from "@pulumi/pulumi";
import * as discord from "@pulumi/discord";

const helloWorld = new discord.Message("helloWorld", {
    channelId: _var.channel_id,
    embed: {
        title: "Hello World",
        footer: {
            text: "I'm awesome",
        },
        fields: [
            {
                name: "foo",
                value: "bar",
                inline: true,
            },
            {
                name: "bar",
                value: "baz",
                inline: false,
            },
        ],
    },
});
Copy
import pulumi
import pulumi_discord as discord

hello_world = discord.Message("helloWorld",
    channel_id=var["channel_id"],
    embed={
        "title": "Hello World",
        "footer": {
            "text": "I'm awesome",
        },
        "fields": [
            {
                "name": "foo",
                "value": "bar",
                "inline": True,
            },
            {
                "name": "bar",
                "value": "baz",
                "inline": False,
            },
        ],
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/discord/v2/discord"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := discord.NewMessage(ctx, "helloWorld", &discord.MessageArgs{
			ChannelId: pulumi.Any(_var.Channel_id),
			Embed: &discord.MessageEmbedArgs{
				Title: pulumi.String("Hello World"),
				Footer: &discord.MessageEmbedFooterArgs{
					Text: pulumi.String("I'm awesome"),
				},
				Fields: discord.MessageEmbedFieldArray{
					&discord.MessageEmbedFieldArgs{
						Name:   pulumi.String("foo"),
						Value:  pulumi.String("bar"),
						Inline: pulumi.Bool(true),
					},
					&discord.MessageEmbedFieldArgs{
						Name:   pulumi.String("bar"),
						Value:  pulumi.String("baz"),
						Inline: pulumi.Bool(false),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Discord = Pulumi.Discord;

return await Deployment.RunAsync(() => 
{
    var helloWorld = new Discord.Message("helloWorld", new()
    {
        ChannelId = @var.Channel_id,
        Embed = new Discord.Inputs.MessageEmbedArgs
        {
            Title = "Hello World",
            Footer = new Discord.Inputs.MessageEmbedFooterArgs
            {
                Text = "I'm awesome",
            },
            Fields = new[]
            {
                new Discord.Inputs.MessageEmbedFieldArgs
                {
                    Name = "foo",
                    Value = "bar",
                    Inline = true,
                },
                new Discord.Inputs.MessageEmbedFieldArgs
                {
                    Name = "bar",
                    Value = "baz",
                    Inline = false,
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.discord.Message;
import com.pulumi.discord.MessageArgs;
import com.pulumi.discord.inputs.MessageEmbedArgs;
import com.pulumi.discord.inputs.MessageEmbedFooterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var helloWorld = new Message("helloWorld", MessageArgs.builder()
            .channelId(var_.channel_id())
            .embed(MessageEmbedArgs.builder()
                .title("Hello World")
                .footer(MessageEmbedFooterArgs.builder()
                    .text("I'm awesome")
                    .build())
                .fields(                
                    MessageEmbedFieldArgs.builder()
                        .name("foo")
                        .value("bar")
                        .inline(true)
                        .build(),
                    MessageEmbedFieldArgs.builder()
                        .name("bar")
                        .value("baz")
                        .inline(false)
                        .build())
                .build())
            .build());

    }
}
Copy
resources:
  helloWorld:
    type: discord:Message
    properties:
      channelId: ${var.channel_id}
      embed:
        title: Hello World
        footer:
          text: I'm awesome
        fields:
          - name: foo
            value: bar
            inline: true
          - name: bar
            value: baz
            inline: false
Copy

Create Message Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Message(name: string, args: MessageArgs, opts?: CustomResourceOptions);
@overload
def Message(resource_name: str,
            args: MessageArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Message(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            channel_id: Optional[str] = None,
            content: Optional[str] = None,
            edited_timestamp: Optional[str] = None,
            embed: Optional[MessageEmbedArgs] = None,
            pinned: Optional[bool] = None,
            tts: Optional[bool] = None)
func NewMessage(ctx *Context, name string, args MessageArgs, opts ...ResourceOption) (*Message, error)
public Message(string name, MessageArgs args, CustomResourceOptions? opts = null)
public Message(String name, MessageArgs args)
public Message(String name, MessageArgs args, CustomResourceOptions options)
type: discord:Message
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MessageArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var messageResource = new Discord.Message("messageResource", new()
{
    ChannelId = "string",
    Content = "string",
    EditedTimestamp = "string",
    Embed = new Discord.Inputs.MessageEmbedArgs
    {
        Author = new Discord.Inputs.MessageEmbedAuthorArgs
        {
            IconUrl = "string",
            Name = "string",
            ProxyIconUrl = "string",
            Url = "string",
        },
        Color = 0,
        Description = "string",
        Fields = new[]
        {
            new Discord.Inputs.MessageEmbedFieldArgs
            {
                Name = "string",
                Inline = false,
                Value = "string",
            },
        },
        Footer = new Discord.Inputs.MessageEmbedFooterArgs
        {
            Text = "string",
            IconUrl = "string",
        },
        Image = new Discord.Inputs.MessageEmbedImageArgs
        {
            Url = "string",
            Height = 0,
            ProxyUrl = "string",
            Width = 0,
        },
        Provider = new Discord.Inputs.MessageEmbedProviderArgs
        {
            Name = "string",
            Url = "string",
        },
        Thumbnail = new Discord.Inputs.MessageEmbedThumbnailArgs
        {
            Url = "string",
            Height = 0,
            ProxyUrl = "string",
            Width = 0,
        },
        Timestamp = "string",
        Title = "string",
        Url = "string",
        Video = new Discord.Inputs.MessageEmbedVideoArgs
        {
            Url = "string",
            Height = 0,
            Width = 0,
        },
    },
    Pinned = false,
    Tts = false,
});
Copy
example, err := discord.NewMessage(ctx, "messageResource", &discord.MessageArgs{
ChannelId: pulumi.String("string"),
Content: pulumi.String("string"),
EditedTimestamp: pulumi.String("string"),
Embed: &.MessageEmbedArgs{
Author: &.MessageEmbedAuthorArgs{
IconUrl: pulumi.String("string"),
Name: pulumi.String("string"),
ProxyIconUrl: pulumi.String("string"),
Url: pulumi.String("string"),
},
Color: pulumi.Float64(0),
Description: pulumi.String("string"),
Fields: .MessageEmbedFieldArray{
&.MessageEmbedFieldArgs{
Name: pulumi.String("string"),
Inline: pulumi.Bool(false),
Value: pulumi.String("string"),
},
},
Footer: &.MessageEmbedFooterArgs{
Text: pulumi.String("string"),
IconUrl: pulumi.String("string"),
},
Image: &.MessageEmbedImageArgs{
Url: pulumi.String("string"),
Height: pulumi.Float64(0),
ProxyUrl: pulumi.String("string"),
Width: pulumi.Float64(0),
},
Provider: &.MessageEmbedProviderArgs{
Name: pulumi.String("string"),
Url: pulumi.String("string"),
},
Thumbnail: &.MessageEmbedThumbnailArgs{
Url: pulumi.String("string"),
Height: pulumi.Float64(0),
ProxyUrl: pulumi.String("string"),
Width: pulumi.Float64(0),
},
Timestamp: pulumi.String("string"),
Title: pulumi.String("string"),
Url: pulumi.String("string"),
Video: &.MessageEmbedVideoArgs{
Url: pulumi.String("string"),
Height: pulumi.Float64(0),
Width: pulumi.Float64(0),
},
},
Pinned: pulumi.Bool(false),
Tts: pulumi.Bool(false),
})
Copy
var messageResource = new Message("messageResource", MessageArgs.builder()
    .channelId("string")
    .content("string")
    .editedTimestamp("string")
    .embed(MessageEmbedArgs.builder()
        .author(MessageEmbedAuthorArgs.builder()
            .iconUrl("string")
            .name("string")
            .proxyIconUrl("string")
            .url("string")
            .build())
        .color(0)
        .description("string")
        .fields(MessageEmbedFieldArgs.builder()
            .name("string")
            .inline(false)
            .value("string")
            .build())
        .footer(MessageEmbedFooterArgs.builder()
            .text("string")
            .iconUrl("string")
            .build())
        .image(MessageEmbedImageArgs.builder()
            .url("string")
            .height(0)
            .proxyUrl("string")
            .width(0)
            .build())
        .provider(MessageEmbedProviderArgs.builder()
            .name("string")
            .url("string")
            .build())
        .thumbnail(MessageEmbedThumbnailArgs.builder()
            .url("string")
            .height(0)
            .proxyUrl("string")
            .width(0)
            .build())
        .timestamp("string")
        .title("string")
        .url("string")
        .video(MessageEmbedVideoArgs.builder()
            .url("string")
            .height(0)
            .width(0)
            .build())
        .build())
    .pinned(false)
    .tts(false)
    .build());
Copy
message_resource = discord.Message("messageResource",
    channel_id="string",
    content="string",
    edited_timestamp="string",
    embed={
        "author": {
            "icon_url": "string",
            "name": "string",
            "proxy_icon_url": "string",
            "url": "string",
        },
        "color": 0,
        "description": "string",
        "fields": [{
            "name": "string",
            "inline": False,
            "value": "string",
        }],
        "footer": {
            "text": "string",
            "icon_url": "string",
        },
        "image": {
            "url": "string",
            "height": 0,
            "proxy_url": "string",
            "width": 0,
        },
        "provider": {
            "name": "string",
            "url": "string",
        },
        "thumbnail": {
            "url": "string",
            "height": 0,
            "proxy_url": "string",
            "width": 0,
        },
        "timestamp": "string",
        "title": "string",
        "url": "string",
        "video": {
            "url": "string",
            "height": 0,
            "width": 0,
        },
    },
    pinned=False,
    tts=False)
Copy
const messageResource = new discord.Message("messageResource", {
    channelId: "string",
    content: "string",
    editedTimestamp: "string",
    embed: {
        author: {
            iconUrl: "string",
            name: "string",
            proxyIconUrl: "string",
            url: "string",
        },
        color: 0,
        description: "string",
        fields: [{
            name: "string",
            inline: false,
            value: "string",
        }],
        footer: {
            text: "string",
            iconUrl: "string",
        },
        image: {
            url: "string",
            height: 0,
            proxyUrl: "string",
            width: 0,
        },
        provider: {
            name: "string",
            url: "string",
        },
        thumbnail: {
            url: "string",
            height: 0,
            proxyUrl: "string",
            width: 0,
        },
        timestamp: "string",
        title: "string",
        url: "string",
        video: {
            url: "string",
            height: 0,
            width: 0,
        },
    },
    pinned: false,
    tts: false,
});
Copy
type: discord:Message
properties:
    channelId: string
    content: string
    editedTimestamp: string
    embed:
        author:
            iconUrl: string
            name: string
            proxyIconUrl: string
            url: string
        color: 0
        description: string
        fields:
            - inline: false
              name: string
              value: string
        footer:
            iconUrl: string
            text: string
        image:
            height: 0
            proxyUrl: string
            url: string
            width: 0
        provider:
            name: string
            url: string
        thumbnail:
            height: 0
            proxyUrl: string
            url: string
            width: 0
        timestamp: string
        title: string
        url: string
        video:
            height: 0
            url: string
            width: 0
    pinned: false
    tts: false
Copy

Message Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Message resource accepts the following input properties:

ChannelId This property is required. string
ID of the channel the message will be in.
Content string
Text content of message. At least one of content or embed must be set.
EditedTimestamp string
When the message was edited.
Embed MessageEmbed
An embed block. At least one of content or embed must be set.
Pinned bool
Whether this message is pinned. (default false)
Tts bool
Whether this message triggers TTS. (default false)
ChannelId This property is required. string
ID of the channel the message will be in.
Content string
Text content of message. At least one of content or embed must be set.
EditedTimestamp string
When the message was edited.
Embed MessageEmbedArgs
An embed block. At least one of content or embed must be set.
Pinned bool
Whether this message is pinned. (default false)
Tts bool
Whether this message triggers TTS. (default false)
channelId This property is required. String
ID of the channel the message will be in.
content String
Text content of message. At least one of content or embed must be set.
editedTimestamp String
When the message was edited.
embed MessageEmbed
An embed block. At least one of content or embed must be set.
pinned Boolean
Whether this message is pinned. (default false)
tts Boolean
Whether this message triggers TTS. (default false)
channelId This property is required. string
ID of the channel the message will be in.
content string
Text content of message. At least one of content or embed must be set.
editedTimestamp string
When the message was edited.
embed MessageEmbed
An embed block. At least one of content or embed must be set.
pinned boolean
Whether this message is pinned. (default false)
tts boolean
Whether this message triggers TTS. (default false)
channel_id This property is required. str
ID of the channel the message will be in.
content str
Text content of message. At least one of content or embed must be set.
edited_timestamp str
When the message was edited.
embed MessageEmbedArgs
An embed block. At least one of content or embed must be set.
pinned bool
Whether this message is pinned. (default false)
tts bool
Whether this message triggers TTS. (default false)
channelId This property is required. String
ID of the channel the message will be in.
content String
Text content of message. At least one of content or embed must be set.
editedTimestamp String
When the message was edited.
embed Property Map
An embed block. At least one of content or embed must be set.
pinned Boolean
Whether this message is pinned. (default false)
tts Boolean
Whether this message triggers TTS. (default false)

Outputs

All input properties are implicitly available as output properties. Additionally, the Message resource produces the following output properties:

Author string
ID of the user who wrote the message.
Id string
The provider-assigned unique ID for this managed resource.
ServerId string
ID of the server this message is in.
Timestamp string
When the message was sent.
Type double
The type of the message.
Author string
ID of the user who wrote the message.
Id string
The provider-assigned unique ID for this managed resource.
ServerId string
ID of the server this message is in.
Timestamp string
When the message was sent.
Type float64
The type of the message.
author String
ID of the user who wrote the message.
id String
The provider-assigned unique ID for this managed resource.
serverId String
ID of the server this message is in.
timestamp String
When the message was sent.
type Double
The type of the message.
author string
ID of the user who wrote the message.
id string
The provider-assigned unique ID for this managed resource.
serverId string
ID of the server this message is in.
timestamp string
When the message was sent.
type number
The type of the message.
author str
ID of the user who wrote the message.
id str
The provider-assigned unique ID for this managed resource.
server_id str
ID of the server this message is in.
timestamp str
When the message was sent.
type float
The type of the message.
author String
ID of the user who wrote the message.
id String
The provider-assigned unique ID for this managed resource.
serverId String
ID of the server this message is in.
timestamp String
When the message was sent.
type Number
The type of the message.

Look up Existing Message Resource

Get an existing Message resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: MessageState, opts?: CustomResourceOptions): Message
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        author: Optional[str] = None,
        channel_id: Optional[str] = None,
        content: Optional[str] = None,
        edited_timestamp: Optional[str] = None,
        embed: Optional[MessageEmbedArgs] = None,
        pinned: Optional[bool] = None,
        server_id: Optional[str] = None,
        timestamp: Optional[str] = None,
        tts: Optional[bool] = None,
        type: Optional[float] = None) -> Message
func GetMessage(ctx *Context, name string, id IDInput, state *MessageState, opts ...ResourceOption) (*Message, error)
public static Message Get(string name, Input<string> id, MessageState? state, CustomResourceOptions? opts = null)
public static Message get(String name, Output<String> id, MessageState state, CustomResourceOptions options)
resources:  _:    type: discord:Message    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Author string
ID of the user who wrote the message.
ChannelId string
ID of the channel the message will be in.
Content string
Text content of message. At least one of content or embed must be set.
EditedTimestamp string
When the message was edited.
Embed MessageEmbed
An embed block. At least one of content or embed must be set.
Pinned bool
Whether this message is pinned. (default false)
ServerId string
ID of the server this message is in.
Timestamp string
When the message was sent.
Tts bool
Whether this message triggers TTS. (default false)
Type double
The type of the message.
Author string
ID of the user who wrote the message.
ChannelId string
ID of the channel the message will be in.
Content string
Text content of message. At least one of content or embed must be set.
EditedTimestamp string
When the message was edited.
Embed MessageEmbedArgs
An embed block. At least one of content or embed must be set.
Pinned bool
Whether this message is pinned. (default false)
ServerId string
ID of the server this message is in.
Timestamp string
When the message was sent.
Tts bool
Whether this message triggers TTS. (default false)
Type float64
The type of the message.
author String
ID of the user who wrote the message.
channelId String
ID of the channel the message will be in.
content String
Text content of message. At least one of content or embed must be set.
editedTimestamp String
When the message was edited.
embed MessageEmbed
An embed block. At least one of content or embed must be set.
pinned Boolean
Whether this message is pinned. (default false)
serverId String
ID of the server this message is in.
timestamp String
When the message was sent.
tts Boolean
Whether this message triggers TTS. (default false)
type Double
The type of the message.
author string
ID of the user who wrote the message.
channelId string
ID of the channel the message will be in.
content string
Text content of message. At least one of content or embed must be set.
editedTimestamp string
When the message was edited.
embed MessageEmbed
An embed block. At least one of content or embed must be set.
pinned boolean
Whether this message is pinned. (default false)
serverId string
ID of the server this message is in.
timestamp string
When the message was sent.
tts boolean
Whether this message triggers TTS. (default false)
type number
The type of the message.
author str
ID of the user who wrote the message.
channel_id str
ID of the channel the message will be in.
content str
Text content of message. At least one of content or embed must be set.
edited_timestamp str
When the message was edited.
embed MessageEmbedArgs
An embed block. At least one of content or embed must be set.
pinned bool
Whether this message is pinned. (default false)
server_id str
ID of the server this message is in.
timestamp str
When the message was sent.
tts bool
Whether this message triggers TTS. (default false)
type float
The type of the message.
author String
ID of the user who wrote the message.
channelId String
ID of the channel the message will be in.
content String
Text content of message. At least one of content or embed must be set.
editedTimestamp String
When the message was edited.
embed Property Map
An embed block. At least one of content or embed must be set.
pinned Boolean
Whether this message is pinned. (default false)
serverId String
ID of the server this message is in.
timestamp String
When the message was sent.
tts Boolean
Whether this message triggers TTS. (default false)
type Number
The type of the message.

Supporting Types

MessageEmbed
, MessageEmbedArgs

Author MessageEmbedAuthor
Author of the embed.
Color double
Color of the embed. Must be an integer color code.
Description string
Description of the embed.
Fields List<MessageEmbedField>
Fields of the embed.
Footer MessageEmbedFooter
Footer of the embed.
Image MessageEmbedImage
Image to be included in the embed.
Provider MessageEmbedProvider
Provider of the embed.
Thumbnail MessageEmbedThumbnail
Thumbnail to be included in the embed.
Timestamp string
Timestamp of the embed content.
Title string
Title of the embed.
Url string
URL of the embed.
Video MessageEmbedVideo
Video to be included in the embed.
Author MessageEmbedAuthor
Author of the embed.
Color float64
Color of the embed. Must be an integer color code.
Description string
Description of the embed.
Fields []MessageEmbedField
Fields of the embed.
Footer MessageEmbedFooter
Footer of the embed.
Image MessageEmbedImage
Image to be included in the embed.
Provider MessageEmbedProvider
Provider of the embed.
Thumbnail MessageEmbedThumbnail
Thumbnail to be included in the embed.
Timestamp string
Timestamp of the embed content.
Title string
Title of the embed.
Url string
URL of the embed.
Video MessageEmbedVideo
Video to be included in the embed.
author MessageEmbedAuthor
Author of the embed.
color Double
Color of the embed. Must be an integer color code.
description String
Description of the embed.
fields List<MessageEmbedField>
Fields of the embed.
footer MessageEmbedFooter
Footer of the embed.
image MessageEmbedImage
Image to be included in the embed.
provider MessageEmbedProvider
Provider of the embed.
thumbnail MessageEmbedThumbnail
Thumbnail to be included in the embed.
timestamp String
Timestamp of the embed content.
title String
Title of the embed.
url String
URL of the embed.
video MessageEmbedVideo
Video to be included in the embed.
author MessageEmbedAuthor
Author of the embed.
color number
Color of the embed. Must be an integer color code.
description string
Description of the embed.
fields MessageEmbedField[]
Fields of the embed.
footer MessageEmbedFooter
Footer of the embed.
image MessageEmbedImage
Image to be included in the embed.
provider MessageEmbedProvider
Provider of the embed.
thumbnail MessageEmbedThumbnail
Thumbnail to be included in the embed.
timestamp string
Timestamp of the embed content.
title string
Title of the embed.
url string
URL of the embed.
video MessageEmbedVideo
Video to be included in the embed.
author MessageEmbedAuthor
Author of the embed.
color float
Color of the embed. Must be an integer color code.
description str
Description of the embed.
fields Sequence[MessageEmbedField]
Fields of the embed.
footer MessageEmbedFooter
Footer of the embed.
image MessageEmbedImage
Image to be included in the embed.
provider MessageEmbedProvider
Provider of the embed.
thumbnail MessageEmbedThumbnail
Thumbnail to be included in the embed.
timestamp str
Timestamp of the embed content.
title str
Title of the embed.
url str
URL of the embed.
video MessageEmbedVideo
Video to be included in the embed.
author Property Map
Author of the embed.
color Number
Color of the embed. Must be an integer color code.
description String
Description of the embed.
fields List<Property Map>
Fields of the embed.
footer Property Map
Footer of the embed.
image Property Map
Image to be included in the embed.
provider Property Map
Provider of the embed.
thumbnail Property Map
Thumbnail to be included in the embed.
timestamp String
Timestamp of the embed content.
title String
Title of the embed.
url String
URL of the embed.
video Property Map
Video to be included in the embed.

MessageEmbedAuthor
, MessageEmbedAuthorArgs

IconUrl string
URL of the author's icon.
Name string
Name of the author.
ProxyIconUrl string
URL to access the author's icon via Discord's proxy.
Url string
URL of the author.
IconUrl string
URL of the author's icon.
Name string
Name of the author.
ProxyIconUrl string
URL to access the author's icon via Discord's proxy.
Url string
URL of the author.
iconUrl String
URL of the author's icon.
name String
Name of the author.
proxyIconUrl String
URL to access the author's icon via Discord's proxy.
url String
URL of the author.
iconUrl string
URL of the author's icon.
name string
Name of the author.
proxyIconUrl string
URL to access the author's icon via Discord's proxy.
url string
URL of the author.
icon_url str
URL of the author's icon.
name str
Name of the author.
proxy_icon_url str
URL to access the author's icon via Discord's proxy.
url str
URL of the author.
iconUrl String
URL of the author's icon.
name String
Name of the author.
proxyIconUrl String
URL to access the author's icon via Discord's proxy.
url String
URL of the author.

MessageEmbedField
, MessageEmbedFieldArgs

Name This property is required. string
Name of the field.
Inline bool
Whether the field is inline.
Value string
Value of the field.
Name This property is required. string
Name of the field.
Inline bool
Whether the field is inline.
Value string
Value of the field.
name This property is required. String
Name of the field.
inline Boolean
Whether the field is inline.
value String
Value of the field.
name This property is required. string
Name of the field.
inline boolean
Whether the field is inline.
value string
Value of the field.
name This property is required. str
Name of the field.
inline bool
Whether the field is inline.
value str
Value of the field.
name This property is required. String
Name of the field.
inline Boolean
Whether the field is inline.
value String
Value of the field.

MessageEmbedFooter
, MessageEmbedFooterArgs

Text This property is required. string
Text of the footer.
IconUrl string
URL to an icon to be included in the footer.
Text This property is required. string
Text of the footer.
IconUrl string
URL to an icon to be included in the footer.
text This property is required. String
Text of the footer.
iconUrl String
URL to an icon to be included in the footer.
text This property is required. string
Text of the footer.
iconUrl string
URL to an icon to be included in the footer.
text This property is required. str
Text of the footer.
icon_url str
URL to an icon to be included in the footer.
text This property is required. String
Text of the footer.
iconUrl String
URL to an icon to be included in the footer.

MessageEmbedImage
, MessageEmbedImageArgs

Url This property is required. string
URL of the image to be included in the embed.
Height double
Height of the image.
ProxyUrl string
URL to access the image via Discord's proxy.
Width double
Width of the image.
Url This property is required. string
URL of the image to be included in the embed.
Height float64
Height of the image.
ProxyUrl string
URL to access the image via Discord's proxy.
Width float64
Width of the image.
url This property is required. String
URL of the image to be included in the embed.
height Double
Height of the image.
proxyUrl String
URL to access the image via Discord's proxy.
width Double
Width of the image.
url This property is required. string
URL of the image to be included in the embed.
height number
Height of the image.
proxyUrl string
URL to access the image via Discord's proxy.
width number
Width of the image.
url This property is required. str
URL of the image to be included in the embed.
height float
Height of the image.
proxy_url str
URL to access the image via Discord's proxy.
width float
Width of the image.
url This property is required. String
URL of the image to be included in the embed.
height Number
Height of the image.
proxyUrl String
URL to access the image via Discord's proxy.
width Number
Width of the image.

MessageEmbedProvider
, MessageEmbedProviderArgs

Name string
Name of the provider.
Url string
URL of the provider.
Name string
Name of the provider.
Url string
URL of the provider.
name String
Name of the provider.
url String
URL of the provider.
name string
Name of the provider.
url string
URL of the provider.
name str
Name of the provider.
url str
URL of the provider.
name String
Name of the provider.
url String
URL of the provider.

MessageEmbedThumbnail
, MessageEmbedThumbnailArgs

Url This property is required. string
URL of the thumbnail to be included in the embed.
Height double
Height of the thumbnail.
ProxyUrl string
URL to access the thumbnail via Discord's proxy.
Width double
Width of the thumbnail.
Url This property is required. string
URL of the thumbnail to be included in the embed.
Height float64
Height of the thumbnail.
ProxyUrl string
URL to access the thumbnail via Discord's proxy.
Width float64
Width of the thumbnail.
url This property is required. String
URL of the thumbnail to be included in the embed.
height Double
Height of the thumbnail.
proxyUrl String
URL to access the thumbnail via Discord's proxy.
width Double
Width of the thumbnail.
url This property is required. string
URL of the thumbnail to be included in the embed.
height number
Height of the thumbnail.
proxyUrl string
URL to access the thumbnail via Discord's proxy.
width number
Width of the thumbnail.
url This property is required. str
URL of the thumbnail to be included in the embed.
height float
Height of the thumbnail.
proxy_url str
URL to access the thumbnail via Discord's proxy.
width float
Width of the thumbnail.
url This property is required. String
URL of the thumbnail to be included in the embed.
height Number
Height of the thumbnail.
proxyUrl String
URL to access the thumbnail via Discord's proxy.
width Number
Width of the thumbnail.

MessageEmbedVideo
, MessageEmbedVideoArgs

Url This property is required. string
URL of the video to be included in the embed.
Height double
Height of the video.
Width double
Width of the video.
Url This property is required. string
URL of the video to be included in the embed.
Height float64
Height of the video.
Width float64
Width of the video.
url This property is required. String
URL of the video to be included in the embed.
height Double
Height of the video.
width Double
Width of the video.
url This property is required. string
URL of the video to be included in the embed.
height number
Height of the video.
width number
Width of the video.
url This property is required. str
URL of the video to be included in the embed.
height float
Height of the video.
width float
Width of the video.
url This property is required. String
URL of the video to be included in the embed.
height Number
Height of the video.
width Number
Width of the video.

Import

$ pulumi import discord:index/message:Message example "<message id>"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
discord lucky3028/terraform-provider-discord
License
Notes
This Pulumi package is based on the discord Terraform Provider.