Beispiel #1
0
 private async Task OnGuildAvaliable(GuildCreateEventArgs e)
 {
     e.Client.DebugLogger.LogMessage(LogLevel.Info, "EmoteRouter", $"Avaliable guild: {e.Guild.Name}", DateTime.Now);
     if (Program.Settings.ListenedGuilds.Contains(e.Guild.Id))
     {
         await EmoteHandler.ReloadEmojiAll();
     }
 }
Beispiel #2
0
 private async Task OnEmojiChanged(GuildEmojisUpdateEventArgs e)
 {
     if (Program.Settings.ListenedGuilds.Contains(e.Guild.Id))
     {
         await EmoteHandler.ReloadEmojiAll();
     }
     await Task.Yield();
 }
 public async Task Listen(CommandContext context)
 {
     if (!Program.Settings.ListenedGuilds.Contains(context.Guild.Id))
     {
         Program.Settings.ListenedGuilds.Add(context.Guild.Id);
         await EmoteHandler.ReloadEmojiAll();
     }
     await Task.Yield();
 }