protected async override void AfterExecute(CommandInfo command) { CurrentGuild ??= await Guilds.GetAsync(Context.Guild); if (CurrentGuild.General.RemoveCommandMessages) { try { await Context.Message.DeleteAsync(); } catch (Exception) {} } await Stats.LogCommandAsync(command.Name, Context.User as SocketGuildUser); }
protected async override void BeforeExecute(CommandInfo command) => CurrentGuild = Context.CurrentGuild ?? await Guilds.GetAsync(Context.Guild);