reenable support for gateway intents / new api
@@ -32,7 +32,7 @@ async def get_prefix(_bot, ctx): # async function to fetch a prefix from the da
return _bot.d.default_prefix if prefix is None else prefix
-"""
+
intents = discord.Intents.default()
intents.guilds = True
intents.members = True
@@ -52,12 +52,11 @@ intents.reactions = True
intents.typing = False
# intents.guild_typing = False
# intents.dm_typing = False
-"""
bot = commands.AutoShardedBot( # setup bot
command_prefix=get_prefix,
case_insensitive=True,
- #intents=intents,
+ intents=intents,
help_command=None
)
