#"Invalid Form Body" Username cannot contain "discord" on /join command

6 messages · Page 1 of 1 (latest)

rich fjord
#

Steps to reproduce.

  1. Clone the latest discordjs/voice-examples.git
  2. Copy Recorder example to new folder
  3. Create config.json with bot token
  4. npm install and npm start
  5. type /join in a discord channel

The example bot code starts up just fine. But when the join command is issued, it throws an error and does not join the channel.

DiscordAPIError[50035]: Invalid Form Body
name[USERNAME_INVALID_CONTAINS]: Username cannot contain "discord"

requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: {
code: 50035,
errors: { name: [Object] },
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'POST',

This happens with a fresh copy of the recorder example. But I also tried updating to the latest discord.js (14.11) as well as updating the discord voice (0.16.0) and discord opus.
And the same error occurs there as well.

sterile tinselBOT
#

• 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.

rich fjord
#

"discord.js": "^14.11.0",
"@discordjs/voice": "^0.16.0",

rare grove
#

what is the name of your bot / application

rich fjord
#

Wow, it was that simple, I feel pretty silly for asking

rare grove
#

no worries