fixes #45
in the playerConnecting event, discordInfo was always being returned as true because the table existed, whether it was empty or not. this caused the if statement that would run checkDiscordIdentifier to always be skipped due to it requiring discordInfo to be false, preventing the proper retrieval of any discord identifier data. the changes i have made will fix that by using next to check if the table is empty.
also added next as a local for optimization
fixes #45 in the
playerConnecting
event,discordInfo
was always being returned astrue
because the table existed, whether it was empty or not. this caused the if statement that would runcheckDiscordIdentifier
to always be skipped due to it requiringdiscordInfo
to befalse
, preventing the proper retrieval of any discord identifier data. the changes i have made will fix that by usingnext
to check if the table is empty. also addednext
as a local for optimization