Skip to content

Commit

Permalink
Update on_loa_deny.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahCxrest authored Nov 30, 2024
1 parent 05ae4fa commit 9cc279b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/on_loa_deny.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ def __init__(self, bot: commands.Bot):
self.bot = bot

@commands.Cog.listener()
async def on_loa_deny(self, s_loa: dict, denied_by: int):
async def on_loa_deny(self, s_loa: dict, denied_by: int, reason: str = "No reason provided."):
guild = self.bot.get_guild(s_loa["guild_id"])
try:
user = await guild.fetch_member(int(s_loa["user_id"]))
except:
return
reason = s_loa["denial_reason"]

try:
await user.send(
embed=discord.Embed(
Expand Down

0 comments on commit 9cc279b

Please sign in to comment.