From aeb8c6faca0108aa1771bd279b2a7e569ce71bc4 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 28 Aug 2022 16:34:39 +0100 Subject: Add 1<<15 to the raw intents value 1<<15 is the flag for message content intent, so adding this value to the intents value hard codes that to always be enabled. Doing it this way also bypasses the need to patch the flags themselvse in discord.py. This is required until https://github.com/python-discord/sir-lancebot/pull/1092 is merged. --- bot/__main__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bot/__main__.py') diff --git a/bot/__main__.py b/bot/__main__.py index 0bf7b398..bd6c70ee 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -13,4 +13,7 @@ for ext in walk_extensions(): bot.load_extension(ext) if not Client.in_ci: + # Manually enable the message content intent. This is required until the below PR is merged + # https://github.com/python-discord/sir-lancebot/pull/1092 + bot._connection._intents.value += 1 << 15 bot.run(Client.token) -- cgit v1.2.3