2020-09-02 00:08:06 +02:00
|
|
|
from structured_config import Structure, StrField
|
|
|
|
|
|
|
|
|
|
|
|
class AdminConfig(Structure):
|
|
|
|
dm: str = StrField("")
|
|
|
|
mentions: str = StrField("")
|
|
|
|
guilds: str = StrField("")
|
|
|
|
errors: str = StrField("")
|
|
|
|
gateway: str = StrField("")
|
|
|
|
|
|
|
|
|
|
|
|
extra = {
|
2020-10-19 21:44:29 +02:00
|
|
|
"dm": {
|
|
|
|
"type": str,
|
|
|
|
"description": "URL of the webhook used for send DMs "
|
|
|
|
"received and sent by the bot",
|
|
|
|
},
|
|
|
|
"mentions": {
|
|
|
|
"type": str,
|
|
|
|
"description": "URL of the webhook used for send Mentions "
|
|
|
|
"received by the bot",
|
|
|
|
},
|
|
|
|
"guilds": {
|
|
|
|
"type": str,
|
|
|
|
"description": "URL of the webhook used for send guilds where the "
|
|
|
|
"bot is added or removed",
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"type": str,
|
|
|
|
"description": "URL of the webhook used for send errors in the bot",
|
|
|
|
},
|
|
|
|
"gateway": {
|
|
|
|
"type": str,
|
|
|
|
"description": "URL of the webhook used for send gateway information",
|
|
|
|
},
|
2020-09-02 00:08:06 +02:00
|
|
|
}
|