Merge pull request #298 from miaowware/intents

Changed the intents and member cache
This commit is contained in:
0x5c 2020-10-30 08:57:57 -04:00 committed by GitHub
commit b4c165851c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
main.py
View File

@ -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)