set intents
This commit is contained in:
parent
83ad5f2613
commit
1bdb41f75d
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,13 @@ bot_token = os.environ.get('DISCORDBOT_TOKEN', 'token')
|
|||
scheduler_hostname = os.environ.get('SCHEDULER_API_HOSTNAME', 'tv.example.com')
|
||||
|
||||
# Discord API Intents
|
||||
intents = discord.Intents.default()
|
||||
intents = discord.Intents.all()
|
||||
intents.members = True
|
||||
intents.guilds = True
|
||||
intents.messages = True
|
||||
intents.reactions = True
|
||||
intents.presences = True
|
||||
intents.message_content = True
|
||||
|
||||
# Discord client
|
||||
bot = commands.Bot(command_prefix="!", intents=intents)
|
||||
|
|
Loading…
Reference in a new issue