feat(bot): ✨ Add members intent.
This commit is contained in:
+4
-1
@@ -10,7 +10,7 @@ from discord.ext.commands import errors
|
|||||||
from tortoise import expressions, transactions, exceptions as tortoise_exc
|
from tortoise import expressions, transactions, exceptions as tortoise_exc
|
||||||
|
|
||||||
from payphone.db import setup, models
|
from payphone.db import setup, models
|
||||||
from payphone.core import constants, exceptions, formatting, help_command
|
from payphone.core import constants, exceptions, formatting, help_command, config
|
||||||
from payphone.core.redis import redis
|
from payphone.core.redis import redis
|
||||||
|
|
||||||
|
|
||||||
@@ -20,6 +20,9 @@ class Payphone(commands.AutoShardedBot):
|
|||||||
intents = discord.Intents.default()
|
intents = discord.Intents.default()
|
||||||
intents.message_content = True
|
intents.message_content = True
|
||||||
|
|
||||||
|
if config.IS_DEBUG:
|
||||||
|
intents.members = True
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
intents=intents,
|
intents=intents,
|
||||||
command_prefix=self.get_prefix,
|
command_prefix=self.get_prefix,
|
||||||
|
|||||||
Reference in New Issue
Block a user