Added stubs for custom channel, custom role and wallet
This commit is contained in:
parent
222a618591
commit
654034491a
15
classes/custom_channel.py
Normal file
15
classes/custom_channel.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
from dataclasses import dataclass
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
from bson import ObjectId
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class CustomChannel:
|
||||||
|
_id: ObjectId
|
||||||
|
channel_id: int
|
||||||
|
owner_id: int
|
||||||
|
allow_comments: bool
|
||||||
|
allow_reactions: bool
|
||||||
|
created: datetime
|
||||||
|
deleted: datetime | None
|
14
classes/custom_role.py
Normal file
14
classes/custom_role.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
from dataclasses import dataclass
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
from bson import ObjectId
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class CustomRole:
|
||||||
|
_id: ObjectId
|
||||||
|
role_id: int
|
||||||
|
role_color: int
|
||||||
|
owner_id: int
|
||||||
|
created: datetime
|
||||||
|
deleted: datetime | None
|
15
classes/wallet.py
Normal file
15
classes/wallet.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
from dataclasses import dataclass
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
from bson import ObjectId
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class Wallet:
|
||||||
|
_id: ObjectId
|
||||||
|
id: int
|
||||||
|
balance: float
|
||||||
|
owner_id: int
|
||||||
|
guild_id: int
|
||||||
|
is_frozen: bool
|
||||||
|
created: datetime
|
Loading…
x
Reference in New Issue
Block a user