/home/container/node_modules/@sapphire/shapeshift/dist/index.js:47
throw this.error;
^
ExpectedConstraintError: Invalid string format
at Object.run (/home/container/node_modules/@sapphire/shapeshift/dist/index.js:1587:64)
at /home/container/node_modules/@sapphire/shapeshift/dist/index.js:207:66
at Array.reduce (<anonymous>)
at StringValidator.parse (/home/container/node_modules/@sapphire/shapeshift/dist/index.js:207:29)
at validateName (/home/container/node_modules/@discordjs/builders/dist/index.js:1384:17)
at SlashCommandRoleOption.setName (/home/container/node_modules/@discordjs/builders/dist/index.js:1468:5)
at /home/container/commands/Administration/setup-income-roles.js:8:39
at MixedClass._sharedAddOptionMethod (/home/container/node_modules/@discordjs/builders/dist/index.js:2008:50)
at MixedClass.addRoleOption (/home/container/node_modules/@discordjs/builders/dist/index.js:1963:17)
at Object.<anonymous> (/home/container/commands/Administration/setup-income-roles.js:8:6) {
constraint: 's.string.regex',
given: 'Role',
expected: 'expected /^[\\p{Ll}\\p{Lm}\\p{Lo}\\p{N}\\p{sc=Devanagari}\\p{sc=Thai}_-]+$/u.test(expected) to be true'
}
Node.js v19.0.0
/home/container/node_modules/@sapphire/shapeshift/dist/index.js:47
throw this.error;
^
ExpectedConstraintError: Invalid string format
at Object.run (/home/container/node_modules/@sapphire/shapeshift/dist/index.js:1587:64)
at /home/container/node_modules/@sapphire/shapeshift/dist/index.js:207:66
at Array.reduce (<anonymous>)
at StringValidator.parse (/home/container/node_modules/@sapphire/shapeshift/dist/index.js:207:29)
at validateName (/home/container/node_modules/@discordjs/builders/dist/index.js:1384:17)
at SlashCommandRoleOption.setName (/home/container/node_modules/@discordjs/builders/dist/index.js:1468:5)
at /home/container/commands/Administration/setup-income-roles.js:8:39
at MixedClass._sharedAddOptionMethod (/home/container/node_modules/@discordjs/builders/dist/index.js:2008:50)
at MixedClass.addRoleOption (/home/container/node_modules/@discordjs/builders/dist/index.js:1963:17)
at Object.<anonymous> (/home/container/commands/Administration/setup-income-roles.js:8:6) {
constraint: 's.string.regex',
given: 'Role',
expected: 'expected /^[\\p{Ll}\\p{Lm}\\p{Lo}\\p{N}\\p{sc=Devanagari}\\p{sc=Thai}_-]+$/u.test(expected) to be true'
}
Node.js v19.0.0