I use mySQL in order to handle the settings within my bot but for some reason the guild ID when getting settings from the dashboard is only ever showing as undefined or as "null" within the actual database file.
Here is the code for one of the functions to change a setting as an example of my code
I use mySQL in order to handle the settings within my bot but for some reason the guild ID when getting settings from the dashboard is only ever showing as undefined or as "null" within the actual database file.
Here is the code for one of the functions to change a setting as an example of my code
When outputting the guild id using
console.log(guild.id)
it always comes out as undefined.I'm assuming it's being formatted as an object instead of a string, snowflake or the like but I would like some clarification.