Skip to content

Commit

Permalink
Add repr to the Action model
Browse files Browse the repository at this point in the history
  • Loading branch information
LightSage committed Nov 1, 2024
1 parent c68238d commit 1a6c23e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightning/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ def is_logged(self) -> bool:
def event(self) -> str:
return self.action.upper()

def __repr__(self) -> str:
return f"<Action guild_id={self.guild_id} action={self.action} target={self.target} moderator={self.moderator}"


class GuildAutoModRulePunishment:
def __init__(self, record) -> None:
Expand Down

0 comments on commit 1a6c23e

Please sign in to comment.