diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-27 13:12:49 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-27 13:12:49 -0500 |
commit | e05f25f4b98cac3c2409cee9a664ab5ea6251467 (patch) | |
tree | f8e3dc4fde8f6deaa543b910acb9a725abbac999 /src/commands/utilities/steal.ts | |
parent | 84f246ebb5ddee984012d3043dcc67ffae806856 (diff) | |
download | tanzanite-e05f25f4b98cac3c2409cee9a664ab5ea6251467.tar.gz tanzanite-e05f25f4b98cac3c2409cee9a664ab5ea6251467.tar.bz2 tanzanite-e05f25f4b98cac3c2409cee9a664ab5ea6251467.zip |
better typings and some other stuff
Diffstat (limited to 'src/commands/utilities/steal.ts')
-rw-r--r-- | src/commands/utilities/steal.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/utilities/steal.ts b/src/commands/utilities/steal.ts index 6a15d71..480201a 100644 --- a/src/commands/utilities/steal.ts +++ b/src/commands/utilities/steal.ts @@ -1,7 +1,7 @@ -import { BushCommand, BushSlashMessage, type BushMessage } from '#lib'; +import { ArgType, BushCommand, BushSlashMessage, type BushMessage } from '#lib'; import { ArgumentOptions, ArgumentType, ArgumentTypeCaster, Flag } from 'discord-akairo'; -import { type Snowflake } from 'discord.js'; import _ from 'lodash'; +import { URL } from 'url'; export default class StealCommand extends BushCommand { public constructor() { @@ -72,7 +72,7 @@ export default class StealCommand extends BushCommand { public override async exec( message: BushMessage | BushSlashMessage, - args?: { emoji?: { name: string; id: Snowflake } | Snowflake | URL | string; name: string } + args?: { emoji?: ArgType<'discordEmoji'> | ArgType<'snowflake'> | ArgType<'url'> | string; name: string } ) { if (!args || !args.emoji) return await message.util.reply(`${util.emojis.error} You must provide an emoji to steal.`); |