From 7d9ca51b4fae3ba788505372327491e641b0c55b Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 7 Mar 2022 02:58:49 +0100 Subject: [PATCH 1/2] bump pycord version --- bot.py | 1 - requirements.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index a35cbc2..7e6437e 100644 --- a/bot.py +++ b/bot.py @@ -28,7 +28,6 @@ intents = discord.Intents( token = os.environ['TOKEN'] prefix = os.environ['PREFIX'] bot = commands.Bot(intents=intents, command_prefix=prefix) -client = discord.Client() admin_role=261603488331595776 member_role=261603747711418371 diff --git a/requirements.txt b/requirements.txt index ddb5d19..981d2f7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -py-cord==2.0.0b4 \ No newline at end of file +py-cord==2.0.0b5 \ No newline at end of file From 070bf5d069c06c105c41307f7f870f41c45392bc Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 7 Mar 2022 03:15:01 +0100 Subject: [PATCH 2/2] try to fix intents --- bot.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index 7e6437e..b109c52 100644 --- a/bot.py +++ b/bot.py @@ -19,11 +19,9 @@ def right(s, amount): def mid(s, offset, amount): return s[offset:offset+amount] -intents = discord.Intents( - guilds=True, - members=True, - messages=True, -) +intents = discord.Intents.default() +intents.members = True +intents.message_content = True token = os.environ['TOKEN'] prefix = os.environ['PREFIX']