コード例 #1
0
 public Task <RestUserMessage> SendMessageAsync(Snowflake channelId, IEnumerable <LocalAttachment> attachments, string content = null, bool textToSpeech = false, LocalEmbed embed = null, LocalMentions mentions = null, RestRequestOptions options = null) => ((IRestDiscordClient)RestClient).SendMessageAsync(channelId, attachments, content, textToSpeech, embed, mentions, options);
コード例 #2
0
ファイル: CachedUser.Client.cs プロジェクト: Miimik/test
        public async Task <RestUserMessage> SendMessageAsync(IEnumerable <LocalAttachment> attachments, 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(attachments, content, textToSpeech, embed, mentions, options).ConfigureAwait(false));
        }
コード例 #3
0
 public Task <RestUserMessage> SendMessageAsync(IEnumerable <LocalAttachment> attachments, string content = null, bool isTTS = false, LocalEmbed embed = null, LocalMentions mentions = null, RestRequestOptions options = null)
 => Client.SendMessageAsync(Id, attachments, content, isTTS, embed, mentions, options);