From 53f07e3a7f9c2eca21fdd80830bd9e9e8660e7e0 Mon Sep 17 00:00:00 2001 From: DeveloperAnonymous <40847862+DeveloperAnonymous@users.noreply.github.com> Date: Wed, 21 Feb 2024 20:48:56 -0500 Subject: [PATCH] Fix user_service.find_by_id() method call in on_member_join() event (#102) --- bot/management/welcome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/management/welcome.py b/bot/management/welcome.py index 611ffb8..4093d61 100644 --- a/bot/management/welcome.py +++ b/bot/management/welcome.py @@ -34,7 +34,7 @@ async def setup(self, ctx: commands.Context): @commands.Cog.listener() async def on_member_join(self, member: discord.Member): """This event is called when a member joins the server.""" - adept_member = await self.user_service.find_by_id(member.id) + adept_member = self.user_service.find_by_id(member.id) if adept_member: return await welcome.process_welcome_result(member, adept_member)