From eba39c3b7a0f3dabe0c66496d5c760392280ee74 Mon Sep 17 00:00:00 2001 From: Brett Anda Date: Sun, 5 May 2024 22:49:13 -0600 Subject: [PATCH] fixed a welcome type --- cogs/welcome.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/welcome.py b/cogs/welcome.py index 601a8c2d..2758111d 100644 --- a/cogs/welcome.py +++ b/cogs/welcome.py @@ -164,7 +164,8 @@ async def add_welcome_role(self, member: discord.Member) -> None: role = config.role if role is None: self.get_guild_config.invalidate(self, member.guild.id) - return await self.bot.pool.execute("UPDATE welcome SET role_id=NULL WHERE guild_id=$1", str(member.guild.id)) + await self.bot.pool.execute("UPDATE welcome SET role_id=NULL WHERE guild_id=$1", str(member.guild.id)) + return try: await member.add_roles(role, reason="Welcome Role") except discord.Forbidden: