joytou commited on
Commit
4daff36
·
1 Parent(s): b57c45e
Files changed (1) hide show
  1. discord_bot.py +2 -0
discord_bot.py CHANGED
@@ -152,6 +152,8 @@ for command in json_data["command"]:
152
  class MyClient(discord.Client):
153
  def __init__(self, *args, **kwargs):
154
  #super().__init__(*args, **kwargs)
 
 
155
  self.tree = app_commands.CommandTree(self)
156
 
157
  async def setup_hook(self):
 
152
  class MyClient(discord.Client):
153
  def __init__(self, *args, **kwargs):
154
  #super().__init__(*args, **kwargs)
155
+ intents = kwargs.pop('intents', discord.Intents.default())
156
+ super().__init__(intents=intents, *args, **kwargs)
157
  self.tree = app_commands.CommandTree(self)
158
 
159
  async def setup_hook(self):