This commit is contained in:
JonnyBro 2022-01-26 01:25:28 +05:00
parent 430e10aa40
commit c5c1f2bf6e

View file

@ -17,7 +17,7 @@ class SteamCard extends Command {
} }
async run(message, args) { async run(message, args) {
const nArgs = args.join(" ").split(new RegExp(/ <@!(\d+)>/)); const nArgs = args.join(" ").split(new RegExp(/ <(@!|@)(\d+)>/));
if (!args[0]) return message.error("images/qrcode:MISSING_TEXT"); if (!args[0]) return message.error("images/qrcode:MISSING_TEXT");
const user = await this.client.resolveUser(nArgs[1]) || message.author; const user = await this.client.resolveUser(nArgs[1]) || message.author;