Error with choices in slash commands

Error:
ExpectedConstraintError: Invalid string format
    at Object.run (C:\Users\4339u\Desktop\UNORP2.2\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2350:64)
    at C:\Users\4339u\Desktop\UNORP2.2\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:67
    at Array.reduce (<anonymous>)
    at _StringValidator.parse (C:\Users\4339u\Desktop\UNORP2.2\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:29)
    at validateName (C:\Users\4339u\Desktop\UNORP2.2\node_modules\@discordjs\builders\dist\index.js:1578:17)
    at SlashCommandUserOption.setName (C:\Users\4339u\Desktop\UNORP2.2\node_modules\@discordjs\builders\dist\index.js:1678:5)
    at C:\Users\4339u\Desktop\UNORP2.2\Commands\Duno-send.cjs:8:11
    at MixedClass._sharedAddOptionMethod (C:\Users\4339u\Desktop\UNORP2.2\node_modules\@discordjs\builders\dist\index.js:2280:50)
    at MixedClass.addUserOption (C:\Users\4339u\Desktop\UNORP2.2\node_modules\@discordjs\builders\dist\index.js:2212:17)
    at Object.<anonymous> (C:\Users\4339u\Desktop\UNORP2.2\Commands\Duno-send.cjs:7:10) {
  constraint: 's.string.regex',
  given: 'UserID',
  expected: 'expected /^[\\p{Ll}\\p{Lm}\\p{Lo}\\p{N}\\p{sc=Devanagari}\\p{sc=Thai}_-]+$/u.test(expected) to be true'
}

Node.js v20.11.0

Code:
data: new D.SlashCommandBuilder()
        .setName("uno-send")
        .setDescription("Takes your message and sends it to the member")
        .addUserOption(option =>
        option.setName('UserID').setDescription('The member to send message to').setRequired(true))
        .addUserOption(option =>
            option.setName('Preset').setDescription('The preset to use, write 0 for no preset').setRequired(true))
        .addUserOption(option =>
            option.setName('msg').setDescription('Comments to the message').setRequired(true)),


Any tips?
Was this page helpful?