diff --git a/events/on_punishment.py b/events/on_punishment.py index 17ceffa4..43105301 100644 --- a/events/on_punishment.py +++ b/events/on_punishment.py @@ -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