I cant bring nightbot to my server, it says invalid authorization code

Asked Feb 14, 2024·31 replies·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

i cant bring nightbot to my server, it says invalid authorization code, please help me to fix this asap. thanks

i tried on web, mobile and pc app but everywhere same issue i am facing

31 replies

Can you post a screenshot demonstrating the problem? I am not able to reproduce any issues adding Nightbot to a Discord server when testing.

Silver Rooster said:
i tried on web, mobile and pc app but everywhere same issue i am facing
Screenshot_2024-02-14_212458.png

note : i can add to my test server but cant on my main server... is there any issue with 2fa ? i enabled 2fa with mobile number and authentication app.

i found it my self the solution, i have installed over 50 bots so it cant join now i remove some of those and the bot is in my server... but thanks for your valuable time.

now i am facing another problems, 1. the bot is in my server but in your site its not showing, 2. i cant use any command on discord .

i have seen that issue once before... the fix was to kick the bot and rejoin the server... hope that helps ^^

have u given the bot any roles (it should create it's own when it joins) and have u checked the permissions of those roles and the channels?

All checked, from my side all good.

Screenshot_20240215-043816__01.jpg

oh, uh.. i've never tried interacting with nightbot via slash commands, i've only ever used the typed commands just like in twitch chat, and they all work fine

It sounds like the issue regarding adding the bot was resolved. As for the bot not replying to commands, that generally happens if the bot is added to a server but does not have a reference to the channel. Kicking the bot and re-inviting the bot, as another user suggested, is how that issue is resolved. If problems persist afterwards, please provide a Nightbot user id and Discord server id so we can investigate further.

i already try all things, so am ready to provide discord and nightbot id . can i dm you ?

I sent discord server id and nightbot on your DM. Thanks in advance, hope you will fix this issue asap. 😊

You did not send a valid Nightbot user ID. You can find that at [https://nightbot.tv/account](https://)

Regardless, what I said above is accurate and applies. The bot was added to the server, but doesn't have a reference to the channel. This is because the bot wasn't added successfully via the control panel. I would recommend kicking the bot, and then trying again.

Please do it fast i am in hurry, i want to setup my YouTube before 20 feb, so please do it fast to fix this issue. Hope you understand , thanks 😊

Sorry for ping again and again but please try to understand I'm facing a problem from last 3 days and still that problem is not solved. Plz plz plz help me to get rid of it. Thanks

Sir i am still waiting solution... Plz provide me a good solution. Thanks 🙏

I am having this issue also. First, I was having some issues with the synced roles - this persisted even after attempting to change a few things, so I disconnected the bot from my server. I try to reintegrate it - after I click join server, it adds the bot to my server, but it does not appear in nightbot integrations as being in the server. It just keeps displaying the msg that it has not joined a server. I even moved nightbot role to be listed above all others except mine. When I click to join the server, it brings up the same authorization screens which I accept... but it still takes me back to the join a server window. If I click ok on that, after a moment a small, red, rectangular box displays in the top right hand corner displaying the error mentioned above then it goes away. I am still on the integration page and the options are settings and disconnect... I can click settings, but again, it says it's not in a server and wants me to have it join one. This has been the same loop for about the past week.. maybe a few days shy of a week. I have tried disconnecting again and letting it sit for a bit while i did other things then came back to reconnect, and it's still the same thing. Nightbot did randomly leave my server out of nowhere last night, too. Lol

Right now, it's in my server with the correct permissions, but it still won't run the triggered commands - and when I check the integrations in nightbot, it still says it's not joined to any servers even thought it is in my server.

The one thing I can think of... I don't know if it matters, but when I initially set up my server, my discord name was a legacy one with the #xxxx where x's are numbers. However, they allowed me to change it to the handle without the #xxxx so even though it is the same acct, maybe that's part of the issue?

1000018510.jpg

That error message likely means that the bot couldn’t be added to your server. You either have too many bots in your server (there’s a max of 50) or you didn’t grant it the correct permissions in the authorization flow.

As was already mentioned to you, you need to re-add the bot using the control panel. We cannot link the bot for you. Only you can fix this.

Just check and it's working now, my bot finally added and also showing add on dashboard too.

dear developer plz listen carefully, now only one problem bot not sync role... my you tube subscriber didn't get subscriber role. plz tell me how to fix this last issue so i can happily exit from this forum. thanks

It's about to membership not subscribers role

Dear devloper can you please reply ?

Nightbot doesn't sync YouTube subscribers.

Didn't find your answer? The community is on Discord.

Ask on Discord