"Bot requires code grant" when inviting Bots

When inviting a bot, you may encounter the following screen:

An image of the "Bot requires code grant" screen

This is caused by the owner of the bot misconfiguring the configuration of their bot.

You will therefore not be able to invite the bot.

For bot owners

Go onto the Discord Developers page, and uncheck the "Require OAuth2 Code Grant" option. This will rectify the problem your users have inviting your bot.

An animated video of the option being de-selected, and then saved