#MySQL Issue

1 messages · Page 1 of 1 (latest)

shadow badger
#

Hey, I have a server ID i need to insert, but unsure of when i would insert it? first time a command is sent? first time the bot joins a server? Its a giveaways bot

crisp rivet
#

first time the bot joins a server is the correct way to do it

#

Especially if you have a public growing bot

shadow badger
crisp rivet
#

you might need to use some of the other ways if your bot is already in a few servers

shadow badger
#

^ if i was ignoring what i just said, id use guild.join right

crisp rivet
shadow badger
#

So what would i use instead of join event?

crisp rivet
#

you can check that all the bot guild ids are in the db, on ready. along with the on guild join listener

shadow badger
#

And, if a guild ID is not in the DB, i insert it?

shadow badger
crisp rivet
shadow badger
crisp rivet
#

Just insert it

#

Although you might want to listen for on guild remove too
But thats upto you

crisp rivet
shadow badger
#

isnt check and listen same thing

crisp rivet
#

👀

shadow badger