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