mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user