20 lines
336 B
Python
20 lines
336 B
Python
"""Bot command schemas."""
|
|
|
|
from datetime import datetime
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class BotCommandResponse(BaseModel):
|
|
id: str
|
|
name: str
|
|
description: str
|
|
enabled: bool
|
|
requires_auth: bool
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
|
|
|
|
class BotCommandUpdate(BaseModel):
|
|
name: str
|
|
enabled: bool
|