mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 10:01:21 +01:00
Set intents
This commit is contained in:
parent
94c5e5c91a
commit
2f8b5fd820
@ -17,12 +17,16 @@ import json
|
|||||||
# except raven.exceptions.InvalidDsn:
|
# except raven.exceptions.InvalidDsn:
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
|
intents = discord.Intents.default()
|
||||||
|
intents.members = True
|
||||||
|
|
||||||
class Titan(discord.AutoShardedClient):
|
class Titan(discord.AutoShardedClient):
|
||||||
def __init__(self, shard_ids=None, shard_count=None):
|
def __init__(self, shard_ids=None, shard_count=None):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
shard_ids=shard_ids,
|
shard_ids=shard_ids,
|
||||||
shard_count=shard_count,
|
shard_count=shard_count,
|
||||||
max_messages=10000,
|
max_messages=10000,
|
||||||
|
intents=intents,
|
||||||
activity=discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
|
activity=discord.Game(name="Embed your Discord server! Visit https://TitanEmbeds.com/")
|
||||||
)
|
)
|
||||||
self.setup_logger(shard_ids)
|
self.setup_logger(shard_ids)
|
||||||
|
Loading…
Reference in New Issue
Block a user