Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public async Task SendMessageAsync(MiunieChannel mc, MiunieUser mu)
        {
            var channel = await _discordClient.GetChannelAsync(mc.ChannelId);

            await channel.SendMessageAsync(embed : mu.ToEmbed(_lang));
        }
Exemplo n.º 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));
 }