コード例 #1
0
        public async Task <string> SendMissMessage(DiscordClient discord, MissAnalyzer analyzer, int index)
        {
            analyzer.CurrentObject = index;
            DiscordMessageBuilder message = new DiscordMessageBuilder().WithFile("miss.png", await GetStream(analyzer.DrawSelectedHitObject(area)));

            return((await(await discord.GetChannelAsync(Settings.DumpChannel)).SendMessageAsync(message)).Attachments[0].Url);
        }
コード例 #2
0
 private async Task <string> SendMissMessage(MissAnalyzer analyzer, int index)
 {
     analyzer.CurrentObject = index;
     return((await(await Discord.GetChannelAsync(Settings.DumpChannel))
             .SendFileAsync("miss.png", GetStream(analyzer.DrawSelectedHitObject(area)), "")).Attachments[0].Url);
 }