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

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