Fix remaining things not explicitly passing the intents kwarg

This commit is contained in:
Rapptz 2022-04-05 23:15:40 -04:00
parent b32b78de45
commit abeea73734
3 changed files with 3 additions and 3 deletions

View File

@ -29,5 +29,5 @@ class MyClient(discord.Client):
await self.wait_until_ready() # wait until the bot logs in await self.wait_until_ready() # wait until the bot logs in
client = MyClient() client = MyClient(intents=discord.Intents.default())
client.run('token') client.run('token')

View File

@ -24,5 +24,5 @@ class MyClient(discord.Client):
await asyncio.sleep(60) # task runs every 60 seconds await asyncio.sleep(60) # task runs every 60 seconds
client = MyClient() client = MyClient(intents=discord.Intents.default())
client.run('token') client.run('token')

View File

@ -94,7 +94,7 @@ class MockCommandInteraction(discord.Interaction):
super().__init__(data=data, state=client._connection) super().__init__(data=data, state=client._connection)
client = discord.Client() client = discord.Client(intents=discord.Intents.default())
class MockTree(discord.app_commands.CommandTree): class MockTree(discord.app_commands.CommandTree):