We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
discord.Client
on_socket_response
1 parent 782b7a9 commit 6ace6eaCopy full SHA for 6ace6ea
discord_slash/client.py
@@ -59,7 +59,7 @@ def __init__(self,
59
60
if not isinstance(client, commands.Bot) and not isinstance(client, commands.AutoShardedBot) and not override_type:
61
self.logger.info("Detected discord.Client! It is highly recommended to use `commands.Bot`.")
62
- original_sock_event = self._discord.on_socket_response
+ original_sock_event = self._discord.on_socket_response if hasattr(self._discord, "on_socket_response") else lambda x: None
63
64
def wrap(*args):
65
original_sock_event(*args)
0 commit comments