Skip to content

Commit

Permalink
fixed a welcome type
Browse files Browse the repository at this point in the history
  • Loading branch information
Brettanda committed May 6, 2024
1 parent 361ed11 commit eba39c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cogs/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eba39c3

Please sign in to comment.