Code not running in discord and not ranking

I have my code right here, everything is finished but i cant see the bot in the main seever applications command and in my test server i can’t rank and keep getting this issue.

The unauthorized error means that your bot does not have the required permissions or the authorization token (That API key you generate in discord developer) is incorrect or missing.
Make sure you have the correct bot token or try to change the token to a new one.

Also remember that now Discord use Intents.
So, make sure you have enabled the required intents in the Discord Developer.