Spaces:
Runtime error
Runtime error
Update Discord bot intents to enable all message content
Browse files- bot/discord_bot.py +1 -2
bot/discord_bot.py
CHANGED
|
@@ -18,8 +18,7 @@ class LLMDiscordBot(commands.Bot):
|
|
| 18 |
"""Discord bot that interfaces with :class:`ChatSession`."""
|
| 19 |
|
| 20 |
def __init__(self, *, intents: discord.Intents | None = None) -> None:
|
| 21 |
-
intents = intents or discord.Intents.
|
| 22 |
-
intents.message_content = True
|
| 23 |
super().__init__(command_prefix=None, intents=intents)
|
| 24 |
self._log = get_logger(self.__class__.__name__)
|
| 25 |
|
|
|
|
| 18 |
"""Discord bot that interfaces with :class:`ChatSession`."""
|
| 19 |
|
| 20 |
def __init__(self, *, intents: discord.Intents | None = None) -> None:
|
| 21 |
+
intents = intents or discord.Intents.all()
|
|
|
|
| 22 |
super().__init__(command_prefix=None, intents=intents)
|
| 23 |
self._log = get_logger(self.__class__.__name__)
|
| 24 |
|