Ejemplo n.º 1
0
        async Task <DiscloseMessage> IDiscloseFacade.SendMessageToChannel(DiscloseChannel channel, string text)
        {
            IMessage message = await _discordClient.SendMessageToChannel(channel.DiscordChannel, text);

            IEnumerable <DiscloseUser> users = await _server.GetUsersAsync();

            return(new DiscloseMessage(message, users.FirstOrDefault(u => u.Id == _discordClient.ClientId)));
        }
Ejemplo n.º 2
0
 internal DiscloseMessage(IMessage message, DiscloseUser user)
 {
     Content = message.Content;
     Channel = new DiscloseChannel(message.Channel);
     User    = user;
 }