diff options
author | 2020-03-29 14:26:28 +0200 | |
---|---|---|
committer | 2020-03-29 14:43:41 +0200 | |
commit | cb5870235be303f2a4aaffb9f26a42f06da32a97 (patch) | |
tree | 9ee9114479a478736ec10e16010db3ab5b43e82a /bot/bot.py | |
parent | Deseasonify: reduce icon shuffle log verbosity (diff) |
Deseasonify: add AssetType enum
Diffstat (limited to 'bot/bot.py')
-rw-r--r-- | bot/bot.py | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,5 +1,5 @@ import asyncio -import contextlib +import enum import logging import socket from typing import Optional @@ -15,7 +15,19 @@ from bot.utils.decorators import mock_in_debug log = logging.getLogger(__name__) -__all__ = ('SeasonalBot', 'bot') +__all__ = ("AssetType", "SeasonalBot", "bot") + + +class AssetType(enum.Enum): + """ + Discord media assets. + + The values match exactly the kwarg keys that can be passed to `Guild.edit` or `User.edit`. + """ + + banner = "banner" + avatar = "avatar" + server_icon = "icon" class SeasonalBot(commands.Bot): |