You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- private readonly DiscordSocketClient _client;
-
- public async Task ReactAsync(SocketUserMessage userMsg, string emoteName)
- {
- var emote = _client.Guilds
- .SelectMany(x => x.Emotes)
- .FirstOrDefault(x => x.Name.IndexOf(
- emoteName, StringComparison.OrdinalIgnoreCase) != -1);
- if (emote == null) return;
- await userMsg.AddReactionAsync(emote);
- }
|