aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-10 15:39:09 +0200
committerGravatar GitHub <[email protected]>2020-12-10 15:39:09 +0200
commit47a2607ac85c7cf808152c301fb6969723915389 (patch)
treeb12e66b12e1d56927403c81a5c712f692ca9fe92
parentAdd sf alias to snowflake command (diff)
Use Snowflake converter for snowflake command
-rw-r--r--bot/exts/utils/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py
index 87abbe4de..8e7e6ba36 100644
--- a/bot/exts/utils/utils.py
+++ b/bot/exts/utils/utils.py
@@ -13,6 +13,7 @@ from discord.utils import snowflake_time
from bot.bot import Bot
from bot.constants import Channels, MODERATION_ROLES, STAFF_ROLES
+from bot.converters import Snowflake
from bot.decorators import in_whitelist
from bot.pagination import LinePaginator
from bot.utils import messages
@@ -170,7 +171,7 @@ class Utils(Cog):
@command(aliases=("snf", "snfl", "sf"))
@in_whitelist(channels=(Channels.bot_commands,), roles=STAFF_ROLES)
- async def snowflake(self, ctx: Context, snowflake: int) -> None:
+ async def snowflake(self, ctx: Context, snowflake: Snowflake) -> None:
"""Get Discord snowflake creation time."""
created_at = snowflake_time(snowflake)
embed = Embed(