Beispiel #1
0
        public async Task SendMessageAsync(MiunieChannel mc, MiunieUser mu)
        {
            if (!(_discord.Client.GetChannel(mc.ChannelId) is SocketTextChannel channel))
            {
                LogSocketTextChannelCastFailed();
                return;
            }

            _ = await channel.SendMessageAsync(embed : mu.ToEmbed(_lang));
        }
Beispiel #2
0
        public async Task SendMessageAsync(MiunieChannel mc, MiunieUser mu)
        {
            var channel = await _discordClient.GetChannelAsync(mc.ChannelId);

            await channel.SendMessageAsync(embed : mu.ToEmbed(_lang));
        }
Beispiel #3
0
 public async Task SendMessageAsync(MiunieChannel mc, MiunieUser mu)
 {
     var channel = _discord.Client.GetChannel(mc.ChannelId) as SocketTextChannel;
     await channel.SendMessageAsync(embed : mu.ToEmbed(_lang));
 }