didier/data/snipe.py

25 lines
349 B
Python
Raw Normal View History

2021-06-22 00:36:22 +02:00
from enum import Enum
from attr import dataclass
class Action(Enum):
"""
Enum to indicate what action was performed by the user
"""
Edit = 0
Remove = 1
@dataclass
class Snipe:
"""
Dataclass to store Snipe info
"""
user: int
channel: int
guild: int
action: Action
old: str
new: str = None