private MyEmote EmoteSearch(string call) { MyEmote calledEmote = null; foreach (var emote in Memes.emotes) { if (call == emote.Key || call == emote.Value.emoteID || Context.Message.Content == emote.Value.emoteID) { calledEmote = emote.Value; return(calledEmote); } } return(calledEmote); }
public async Task emoteAsync(string call = "null") { MyEmote calledEmote = EmoteSearch(call); if (calledEmote != null) { var embed = new EmbedBuilder(); embed.WithImageUrl(calledEmote.url) .WithAuthor(Context.Message.Author); await Context.Message.DeleteAsync(); await ReplyAsync("", false, embed); } else { await ReplyAsync("nie ma JESZCZE takiej emoty - proś miłosza żeby ruszył dupe"); } }