aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/backend/branding/_cog.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/backend/branding/_cog.py b/bot/exts/backend/branding/_cog.py
index a57cc8623..e5781f76d 100644
--- a/bot/exts/backend/branding/_cog.py
+++ b/bot/exts/backend/branding/_cog.py
@@ -1,6 +1,7 @@
import asyncio
import contextlib
import random
+import types
import typing as t
from datetime import timedelta
from enum import Enum
@@ -120,10 +121,10 @@ class Branding(commands.Cog):
# asset has been used in the current rotation.
_cache_icons = RedisCache()
_cache_banners = RedisCache()
- asset_caches = {
+ asset_caches = types.MappingProxyType({
AssetType.ICON: _cache_icons,
AssetType.BANNER: _cache_banners
- }
+ })
# All available event names & durations. Cached by the daemon nightly; read by the calendar command.
cache_events = RedisCache()