From e05f25f4b98cac3c2409cee9a664ab5ea6251467 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 27 Dec 2021 13:12:49 -0500 Subject: better typings and some other stuff --- src/commands/info/snowflake.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/commands/info/snowflake.ts') diff --git a/src/commands/info/snowflake.ts b/src/commands/info/snowflake.ts index f2ffaa8..1658da9 100644 --- a/src/commands/info/snowflake.ts +++ b/src/commands/info/snowflake.ts @@ -1,4 +1,4 @@ -import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; +import { ArgType, BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; import { MessageEmbed, SnowflakeUtil, @@ -39,7 +39,8 @@ export default class SnowflakeCommand extends BushCommand { slash: true }); } - public override async exec(message: BushMessage | BushSlashMessage, args: { snowflake: Snowflake }) { + + public override async exec(message: BushMessage | BushSlashMessage, args: { snowflake: ArgType<'snowflake'> }) { const snowflake = `${args.snowflake}` as Snowflake; const snowflakeEmbed = new MessageEmbed().setTitle('Unknown :snowflake:').setColor(util.colors.default); -- cgit