Skip to content

Commit

Permalink
Add blank title (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1618 authored Oct 10, 2023
1 parent 3d52d8a commit 55f9988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/QR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class QR extends Command {
.addStringOption(option =>
option
.setName('title')
.setDescription('The title of the QR. If empty, will use URL of QR code as title.')
.setDescription('The title of the QR. If not specified, will be blank.')
.setRequired(false)
)
.setDescription('Generates a QR code with the provided text in it. Includes ACM logo!');
Expand Down Expand Up @@ -83,7 +83,7 @@ export default class QR extends Command {
//
// See Checkin.ts on how QR code arguments work.
//
const qrCode = QR.generateQR(content, titleArgument || content, '');
const qrCode = QR.generateQR(content, titleArgument || '', '');

// Make the Discord attachment for the QR code.
const qrCodeDataUrl = await qrCode;
Expand Down

0 comments on commit 55f9988

Please sign in to comment.