Steps to reproduce.
- Clone the latest discordjs/voice-examples.git
- Copy Recorder example to new folder
- Create config.json with bot token
- npm install and npm start
- 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.