Skip to content

Commit

Permalink
Updated on_punishment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankpandey04 committed Nov 23, 2024
1 parent 3f24b20 commit 39be997
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion events/on_punishment.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ async def get_discord_id_by_roblox_id(self, roblox_id):
f"> **Reason:** {warning.reason}\n"
)
).set_thumbnail(url=thumbnail)
await user_to_dm.send(embed=embed)
view = discord.ui.View()
view.add_item(discord.ui.Button(label="Appeal Moderation", url=f"https://ermbot.xyz/{guild.id}/{warning.snowflake}/appeal"))
await user_to_dm.send(embed=embed, view=view)
logging.info(f"Sent DM to user {warned_discord_id} about punishment.")
except Exception as e:
pass
Expand Down

0 comments on commit 39be997

Please sign in to comment.