Just before finishing the invite process, an error pops out as the title of this issue. From discord.js's guide:
If you get an error message saying "Bot requires a code grant", then head over into your application's settings and disable the "Require OAuth2 Code Grant" option.
Just before finishing the invite process, an error pops out as the title of this issue. From discord.js's guide: