mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-30 21:12:58 +00:00 
			
		
		
		
	Fix remaining things not explicitly passing the intents kwarg
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user