Skip to content

Commit 1772910

Browse files
committed
3.6.1 - error message if no priv. intents granted
1 parent 2d99efe commit 1772910

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html);
77
however, insignificant breaking changes do not guarantee a major version bump, see the reasoning [here](https://github.com/kyb3r/modmail/issues/319). If you're a plugins developer, note the "BREAKING" section.
88

9+
# v3.6.1
10+
11+
### Added
12+
13+
- Proper error message if privileged intents not explicitly granted to bot.
14+
15+
916
# v3.6.0
1017

1118
### Added
@@ -29,6 +36,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
2936
- Explicitly state intents used for connection
3037
- Use `--diff` for black CI instead of `--check` ([GH#2816](https://github.com/kyb3r/modmail/issues/2816))
3138

39+
3240
# v3.5.0
3341

3442
Fixed discord.py issue.

bot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def run(self, *args, **kwargs):
167167
pass
168168
except discord.LoginFailure:
169169
logger.critical("Invalid token")
170+
except discord.PrivilegedIntentsRequired:
171+
logger.critical('Privileged intents are not explicitly granted in the discord developers dashboard.')
170172
except Exception:
171173
logger.critical("Fatal exception", exc_info=True)
172174
finally:

0 commit comments

Comments
 (0)