Skip to content

Commit

Permalink
Improve code for intents
Browse files Browse the repository at this point in the history
  • Loading branch information
WitherredAway committed Mar 15, 2022
1 parent 8ea9f50 commit 39b06eb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
from discord.ext import commands


intents = discord.Intents.default()
intents.message_content = True
intents.members = True


def get_prefix(bot, message):
prefixes = bot.PREFIXES
if not message.guild:
Expand Down Expand Up @@ -60,7 +55,7 @@ def __init__(self, **kwargs):
command_prefix=get_prefix,
owner_ids=[267550284979503104, 761944238887272481],
case_insensitive=True,
intents=intents,
intents=discord.Intents.all(),
)
print(f"No rate limit.")
keep_alive()
Expand Down

0 comments on commit 39b06eb

Please sign in to comment.