diff options
Diffstat (limited to 'src/commands/utilities/hash.ts')
-rw-r--r-- | src/commands/utilities/hash.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/utilities/hash.ts b/src/commands/utilities/hash.ts index a8fdee1..646ed28 100644 --- a/src/commands/utilities/hash.ts +++ b/src/commands/utilities/hash.ts @@ -9,7 +9,7 @@ export default class HashCommand extends BushCommand { category: 'utilities', description: { content: 'Gets the file hash of the given discord link', - usage: 'hash <file url>', + usage: ['hash <fileUrl>'], examples: ['hash https://cdn.discordapp.com/emojis/782630946435366942.png?v=1'] //nice }, args: [ @@ -27,7 +27,7 @@ export default class HashCommand extends BushCommand { }); } - public override async exec(message: BushMessage, { url }: { url: string }): Promise<void> { + public override async exec(message: BushMessage, { url }: { url: string }) { try { const req = await got.get(url); const rawHash = crypto.createHash('md5'); |