Update to d.py 1.5.1, explicitly request privileged intents (#4423)

Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
jack1142
2020-10-21 20:55:25 +02:00
committed by GitHub
parent 34fe88da29
commit e1226c6c88
8 changed files with 69 additions and 6 deletions

View File

@@ -172,6 +172,12 @@ class RedBase(
if "owner_id" in kwargs:
raise RuntimeError("Red doesn't accept owner_id kwarg, use owner_ids instead.")
if "intents" not in kwargs:
intents = discord.Intents.all()
for intent_name in cli_flags.disable_intent:
setattr(intents, intent_name, False)
kwargs["intents"] = intents
self._owner_id_overwrite = cli_flags.owner
if "owner_ids" in kwargs: