public async Task SendMessageAsync(string message, bool tts = false, IChatEmbed embed = null) { if (_channel is IMessageChannel) { await((IMessageChannel)_channel).SendMessageAsync(message, tts, (Embed)embed?.GetEmbed()); } }
public void MakePostWithEmbed(PokemonRaidPost post, IBotServerConfiguration guildConfig, out IChatEmbed header, out IChatEmbed response, out string channel, out string mentions) { throw new NotImplementedException(); }
public void MakePostWithEmbed(PokemonRaidPost post, IBotServerConfiguration guildConfig, out IChatEmbed header, out IChatEmbed response, out string channel, out string mentions) { var headerstring = MakePostHeader(post); response = MakeResponseEmbed(post, guildConfig, headerstring); header = MakeHeaderEmbed(post, headerstring); var joinedUserIds = post.JoinedUsers.Select(x => x.Id); var mentionUserIds = post.Responses.Select(x => x.UserId.ToString()).Distinct().ToList(); mentionUserIds.AddRange(post.JoinedUsers.Select(x => x.Id.ToString()).Distinct()); channel = $"<#{string.Join(">, <#", post.ChannelMessages.Keys)}>"; //var users = mentionUserIds.Count() > 0 ? $",<@{string.Join(">,<@", mentionUserIds.Distinct())}>" : ""; mentions = post.MentionedRoleIds.Count() > 0 ? $"<@&{string.Join(">, <@&", post.MentionedRoleIds.Distinct())}>" : ""; //mentions = channel +/* users +*/ roles; }
public Task SendMessageAsync(string message, bool tts = false, IChatEmbed embed = null) { throw new NotImplementedException(); }