diff options
author | 2022-08-28 16:34:39 +0100 | |
---|---|---|
committer | 2022-08-28 16:34:39 +0100 | |
commit | aeb8c6faca0108aa1771bd279b2a7e569ce71bc4 (patch) | |
tree | 65aff2484b66b7678a8f8912fc5e288af7805cf6 /bot/__main__.py | |
parent | Merge 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.
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 3 |
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) |