コード例 #1
0
ファイル: Commands.cs プロジェクト: Lock-The-Door/REE6
        public async Task PurgeRole()
        {
            await ReplyAsync("Purging roles...");
            await ReplyAsync("REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE");

            new System.Threading.Thread(delegate() {
                Task.Run(() => PurgeActions.RolePurge(Context.Guild));
            }).Start();
        }
コード例 #2
0
ファイル: Commands.cs プロジェクト: Lock-The-Door/REE6
        public async Task PurgeAll()
        {
            await ReplyAsync("Purging everything...");
            await ReplyAsync("REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE");

            new System.Threading.Thread(delegate() {
                Task.Run(() => PurgeActions.RolePurge(Context.Guild));
                Task.Run(() => PurgeActions.ChannelPurge(Context.Guild));
                Task.Run(() => PurgeActions.Unban(Context.Guild));
            }).Start();
        }