Exemple #1
0
        public async Task BotShutdown(CommandContext ctx)
        {
            Console.WriteLine("shutdown request");
            await LogPrivate(ctx.Channel as DiscordDmChannel, "Shutdown Bot", "With this command the bot will be shut down", $"Shutting down {DiscordEmoji.FromGuildEmote(ctx.Client, 491234510659125271)}", DiscordColor.Orange);

            ShutdownRequest.Cancel();
        }
        public async Task BotShutdown(CommandContext ctx)
        {
            await ctx.Guild.GetChannel(hcBotLogChannelId).SendMessageAsync($"Shuting down {DiscordEmoji.FromGuildEmote(ctx.Client, botEmote)}");

            await ctx.Message.DeleteAsync();

            ShutdownRequest.Cancel();
        }