Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 protected async override void BeforeExecute(CommandInfo command) => CurrentGuild = Context.CurrentGuild ?? await Guilds.GetAsync(Context.Guild);