aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-20 12:41:28 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-20 12:41:28 -0400
commiteb381b80e60f01a635af3ffe80bf950bb4a73c30 (patch)
tree5b00332893dfead81ce53947c2e81494d2dd1371 /src/commands
parent7048fb1d6d24a26d4e0fdadc2f75bd0717fa80f9 (diff)
downloadtanzanite-eb381b80e60f01a635af3ffe80bf950bb4a73c30.tar.gz
tanzanite-eb381b80e60f01a635af3ffe80bf950bb4a73c30.tar.bz2
tanzanite-eb381b80e60f01a635af3ffe80bf950bb4a73c30.zip
fixed steal
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/utilities/steal.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/utilities/steal.ts b/src/commands/utilities/steal.ts
index 734aab5..097c902 100644
--- a/src/commands/utilities/steal.ts
+++ b/src/commands/utilities/steal.ts
@@ -33,11 +33,10 @@ export default class StealCommand extends BushCommand {
}
public override async exec(
message: BushMessage,
- args?: { emojiOrName?: { name: string; id: Snowflake; animated: boolean } | Snowflake | URL | string; name: string }
+ args?: { emojiOrName?: { name: string; id: Snowflake } | Snowflake | URL | string; name: string }
): Promise<unknown> {
if ((!args || !args.emojiOrName) && !message.attachments.size)
return await message.util.reply(`${util.emojis.error} You must provide an emoji to steal.`);
- console.log(args);
const image =
message.attachments.size && message.attachments.first()?.contentType?.includes('image/')
@@ -62,10 +61,11 @@ export default class StealCommand extends BushCommand {
? args?.name ?? args.emojiOrName.name ?? 'stolen_emoji'
: 'stolen_emoji';
- const creationSuccess = await message.guild!.emojis.create(image, emojiName, {
- reason: `Stolen by ${message.author.tag} (${message.author.id})`
- });
- // .catch((e: Error) => e);
+ const creationSuccess = await message
+ .guild!.emojis.create(image, emojiName, {
+ reason: `Stolen by ${message.author.tag} (${message.author.id})`
+ })
+ .catch((e: Error) => e);
if (!(creationSuccess instanceof Error))
return await message.util.reply(`${util.emojis.success} You successfully stole ${creationSuccess}.`);