public async Task <RestUserMessage> SendMessageAsync(LocalAttachment attachment, string content = null, bool textToSpeech = false, LocalEmbed embed = null, LocalMentions mentions = null, RestRequestOptions options = null) { var channel = await CreateDmChannelAsync(options).ConfigureAwait(false); return(await channel.SendMessageAsync(attachment, content, textToSpeech, embed, mentions, options).ConfigureAwait(false)); }
public Task <RestUserMessage> ExecuteWebhookAsync(Snowflake webhookId, string webhookToken, LocalAttachment attachment, string content = null, bool textToSpeech = false, IEnumerable <LocalEmbed> embeds = null, string name = null, string avatarUrl = null, bool wait = false, RestRequestOptions options = null) => ((IRestDiscordClient)RestClient).ExecuteWebhookAsync(webhookId, webhookToken, attachment, content, textToSpeech, embeds, name, avatarUrl, wait, options);
public Task <RestUserMessage> SendMessageAsync(Snowflake channelId, LocalAttachment attachment, string content = null, bool textToSpeech = false, LocalEmbed embed = null, LocalMentions mentions = null, RestRequestOptions options = null) => ((IRestDiscordClient)RestClient).SendMessageAsync(channelId, attachment, content, textToSpeech, embed, mentions, options);
public Task <RestUserMessage> SendMessageAsync(LocalAttachment attachment, string content = null, bool isTTS = false, LocalEmbed embed = null, LocalMentions mentions = null, RestRequestOptions options = null) => Client.SendMessageAsync(Id, attachment, content, isTTS, embed, mentions, options);