mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-16 14:13:13 +00:00
Fix remaining things not explicitly passing the intents kwarg
This commit is contained in:
parent
b32b78de45
commit
abeea73734
@ -29,5 +29,5 @@ class MyClient(discord.Client):
|
||||
await self.wait_until_ready() # wait until the bot logs in
|
||||
|
||||
|
||||
client = MyClient()
|
||||
client = MyClient(intents=discord.Intents.default())
|
||||
client.run('token')
|
||||
|
@ -24,5 +24,5 @@ class MyClient(discord.Client):
|
||||
await asyncio.sleep(60) # task runs every 60 seconds
|
||||
|
||||
|
||||
client = MyClient()
|
||||
client = MyClient(intents=discord.Intents.default())
|
||||
client.run('token')
|
||||
|
@ -94,7 +94,7 @@ class MockCommandInteraction(discord.Interaction):
|
||||
super().__init__(data=data, state=client._connection)
|
||||
|
||||
|
||||
client = discord.Client()
|
||||
client = discord.Client(intents=discord.Intents.default())
|
||||
|
||||
|
||||
class MockTree(discord.app_commands.CommandTree):
|
||||
|
Loading…
x
Reference in New Issue
Block a user