Ejemplo n.º 1
0
 public static async Task PrivateOnVoiceStateUpdated(DiscordClient client, VoiceStateUpdateEventArgs e)
 {
     if (e.Channel != null &&
         e.Channel.ParentId == Bot.BotSettings.PrivateCategory)
     {
         var ship = PrivateShip.GetByChannel(e.Channel.Id);
         if (ship != null)
         {
             ship.LastUsed = DateTime.Now;
         }
     }
     await Task.CompletedTask;
 }