mirror of
https://github.com/miaowware/qrm2.git
synced 2025-02-03 09:44:07 -05:00
Merge pull request #298 from miaowware/intents
Changed the intents and member cache
This commit is contained in:
commit
b4c165851c
16
main.py
16
main.py
@ -45,20 +45,18 @@ loop = asyncio.get_event_loop()
|
|||||||
connector = loop.run_until_complete(conn.new_connector())
|
connector = loop.run_until_complete(conn.new_connector())
|
||||||
|
|
||||||
# Defining the intents
|
# Defining the intents
|
||||||
intents = discord.Intents.default()
|
intents = discord.Intents.none()
|
||||||
# We don't need those
|
intents.guilds = True
|
||||||
intents.bans = False
|
intents.guild_messages = True
|
||||||
intents.emojis = False
|
intents.dm_messages = True
|
||||||
intents.integrations = False
|
|
||||||
intents.webhooks = False
|
member_cache = discord.MemberCacheFlags.from_intents(intents)
|
||||||
intents.invites = False
|
|
||||||
intents.voice_states = False
|
|
||||||
intents.typing = False
|
|
||||||
|
|
||||||
bot = commands.Bot(command_prefix=opt.prefix,
|
bot = commands.Bot(command_prefix=opt.prefix,
|
||||||
case_insensitive=True,
|
case_insensitive=True,
|
||||||
description=info.description, help_command=commands.MinimalHelpCommand(),
|
description=info.description, help_command=commands.MinimalHelpCommand(),
|
||||||
intents=intents,
|
intents=intents,
|
||||||
|
member_cache=member_cache,
|
||||||
loop=loop,
|
loop=loop,
|
||||||
connector=connector)
|
connector=connector)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user