aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-08-28 16:34:39 +0100
committerGravatar Chris Lovering <[email protected]>2022-08-28 16:34:39 +0100
commitaeb8c6faca0108aa1771bd279b2a7e569ce71bc4 (patch)
tree65aff2484b66b7678a8f8912fc5e288af7805cf6
parentMerge pull request #1049 from python-discord/bookmark-enhancements (diff)
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.
-rw-r--r--bot/__main__.py3
1 files changed, 3 insertions, 0 deletions
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)