Remove intents.default and make intents a required parameter

This commit is contained in:
Gnome
2021-08-31 20:48:31 +01:00
parent 773ad6f5bf
commit 6e41bd2219
24 changed files with 60 additions and 52 deletions

View File

@@ -3,7 +3,11 @@ import typing
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix=commands.when_mentioned, description="Nothing to see here!")
bot = commands.Bot(
command_prefix=commands.when_mentioned,
description="Nothing to see here!",
intents=discord.Intents(guilds=True, messages=True)
)
# the `hidden` keyword argument hides it from the help command.
@bot.group(hidden=True)