Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Fixed bug with arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
S222em committed Nov 26, 2021
1 parent 1b48fd2 commit aed60c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/GComponentHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class GComponentHandler {
if (!interaction || !interaction.isMessageComponent()) return;

try {
const regex = new RegExp('[A-Za-z]+');
const regex = new RegExp('[A-Za-z1-9]+', 'g');
const args = interaction.customId.match(regex);
const name = args.shift();

Expand Down

0 comments on commit aed60c1

Please sign in to comment.