Set intents

This commit is contained in:
Jeremy "EndenDragon" Zhang 2021-03-12 13:34:45 -08:00 committed by GitHub
parent 94c5e5c91a
commit 2f8b5fd820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,12 +17,16 @@ import json
# except raven.exceptions.InvalidDsn:
# pass
intents = discord.Intents.default()
intents.members = True
class Titan(discord.AutoShardedClient):
def __init__(self, shard_ids=None, shard_count=None):
super().__init__(
shard_ids=shard_ids,
shard_count=shard_count,
max_messages=10000,
intents=intents,
activity=discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
)
self.setup_logger(shard_ids)