From ae3dc69dcaeb0b0126b5f225fbb954e12e7bfda2 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Thu, 24 Dec 2020 09:34:56 +0100 Subject: [PATCH] Bot: subscribe to 'members' intent --- ryan/__main__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ryan/__main__.py b/ryan/__main__.py index 115f141..ff2be73 100644 --- a/ryan/__main__.py +++ b/ryan/__main__.py @@ -17,7 +17,15 @@ def run_git(args: List[str]) -> str: latest_tag = run_git(["describe", "--tags"]) tag_tstamp = run_git(["log", "-1", "--format=%ci", latest_tag]).split()[0] # Date only -bot = Ryan(command_prefix=Client.prefix, activity=discord.Game(f"version {latest_tag}"), help_command=None) +intents = discord.Intents.default() +intents.members = True + +bot = Ryan( + command_prefix=Client.prefix, + activity=discord.Game(f"version {latest_tag}"), + help_command=None, + intents=intents, +) # Instantiate all extensions bot.load_extension("ryan.exts.corona")