Skip to content

Commit 336a01e

Browse files
committed
Make /tools qr create's content a required arg
1 parent 64e4276 commit 336a01e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/commands/interactions/slash/tools/qr/create.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class ToolsQrCreateCommand extends BaseInteractionCommandOption {
1919
{
2020
name: 'query',
2121
description: 'QR Code\'s Content',
22+
required: true,
2223
value: Parameters.string({maxLength: 1248}),
2324
},
2425
{

src/commands/prefixed/tools/qr.create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ export default class QRCreateCommand extends BaseCommand<Formatter.Commands.Tool
3232
}
3333

3434
async run(context: Command.Context, args: Formatter.Commands.ToolsQrCreate.CommandArgs) {
35-
return Formatter.Commands.ToolsQrScan.createMessage(context, args);
35+
return Formatter.Commands.ToolsQrCreate.createMessage(context, args);
3636
}
3737
}

0 commit comments

Comments
 (0)