Method CreateMessageAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
CreateMessageAsync(ulong, string)
Sends a message
public Task<DiscordMessage> CreateMessageAsync(ulong channelId, string content)
Parameters
Returns
CreateMessageAsync(ulong, DiscordEmbed)
Sends a message
public Task<DiscordMessage> CreateMessageAsync(ulong channelId, DiscordEmbed embed)
Parameters
channelId
ulongChannel ID
embed
DiscordEmbedEmbed to attach
Returns
CreateMessageAsync(ulong, string, DiscordEmbed)
Sends a message
public Task<DiscordMessage> CreateMessageAsync(ulong channelId, string content, DiscordEmbed embed)
Parameters
channelId
ulongChannel ID
content
stringMessage (text) content
embed
DiscordEmbedEmbed to attach
Returns
CreateMessageAsync(ulong, DiscordMessageBuilder)
Sends a message
public Task<DiscordMessage> CreateMessageAsync(ulong channelId, DiscordMessageBuilder builder)
Parameters
channelId
ulongChannel ID
builder
DiscordMessageBuilderThe Discord Message builder.
Returns
CreateMessageAsync(ulong, Action<DiscordMessageBuilder>)
Sends a message
public Task<DiscordMessage> CreateMessageAsync(ulong channelId, Action<DiscordMessageBuilder> action)
Parameters
channelId
ulongChannel ID
action
Action<DiscordMessageBuilder>The Discord Message builder.