What is the best way to detect a change in server ownership when the bot happens to be offline?
Hi,
I am using Discord.JS and am trying to figure out how I might change a server in my database's owner_id field when the owner id is found to be different.
Here is an example:
If there isn't a way around this to changing the owner_id, what should I do? I'd rather a user who once owned a server (which is added to my database) not have access to it if they are no longer the owner.
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPwhy do you need to know who's the owner if the bot is no longer in the server?
if the bot is no longer there you could just remove its data since there's no use for you to have it
My project is a server service (website) similar to disboard, or discordfy
There will be a page for adding/editing servers and their data
The server isn't added to the database when the bot joins, not as simple as that
why not? :Thonk:
I'd recommend you specify your entire setup since this really seems like an xy question
and probably in #other-js-ts
since I don't think this is djs related
Thank you