#error on index.js

12 messages · Page 1 of 1 (latest)

feral crowBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

noble frigate
#

remove the 4th line

mortal phoenix
#

ok

#

that was fast

noble frigate
mortal phoenix
#

got this error now: throw this.error;
^

ExpectedConstraintError: Invalid string format
at Object.run (C:\Users\7mccr\Desktop\discord-bot\node_modules@sapphire\shapeshift\dist\index.js:1587:64)
at C:\Users\7mccr\Desktop\discord-bot\node_modules@sapphire\shapeshift\dist\index.js:207:66
at Array.reduce (<anonymous>)
at StringValidator.parse (C:\Users\7mccr\Desktop\discord-bot\node_modules@sapphire\shapeshift\dist\index.js:207:29)
at validateName (C:\Users\7mccr\Desktop\discord-bot\node_modules@discordjs\builders\dist\index.js:1384:17)
at MixedClass.setName (C:\Users\7mccr\Desktop\discord-bot\node_modules@discordjs\builders\dist\index.js:1468:5)
at Object.<anonymous> (C:\Users\7mccr\Desktop\discord-bot\commands\ping.js:5:4)
at Module._compile (node:internal/modules/cjs/loader:1267:14)
at Module.extensions..js (node:internal/modules/cjs/loader:1321:10)
at Module.load (node:internal/modules/cjs/loader:1125:32) {
constraint: 's.string.regex',
given: 'pong',
expected: 'expected /^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}
-]+$/u.test(expected) to be true'
}

noble frigate
#

not related to voice

#

open a post in #986520997006032896

mortal phoenix
#

what do you mean by voice?

noble frigate
#

read the channel name

mortal phoenix
#

oh sorry

#

sorry