aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-29 14:26:28 +0200
committerGravatar kwzrd <[email protected]>2020-03-29 14:43:41 +0200
commitcb5870235be303f2a4aaffb9f26a42f06da32a97 (patch)
tree9ee9114479a478736ec10e16010db3ab5b43e82a /bot/bot.py
parentDeseasonify: reduce icon shuffle log verbosity (diff)
Deseasonify: add AssetType enum
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/bot/bot.py b/bot/bot.py
index b9ebb7f2..76ce5607 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -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):