-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(server/consumables): remove unused Player
variable
#480
Conversation
I've done all I know |
server/logs.lua
Outdated
@@ -86,6 +85,7 @@ RegisterNetEvent('qb-log:server:CreateLog', function(name, title, color, message | |||
logQueue[name][#logQueue[name] + 1] = { webhook = webHook, data = embedData } | |||
|
|||
if #logQueue[name] >= 10 then | |||
local postData = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try initialising postData
as nil, or no value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems that this change does not fix the "issue"
server/logs.lua
Outdated
@@ -86,6 +85,7 @@ RegisterNetEvent('qb-log:server:CreateLog', function(name, title, color, message | |||
logQueue[name][#logQueue[name] + 1] = { webhook = webHook, data = embedData } | |||
|
|||
if #logQueue[name] >= 10 then | |||
local postData = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try initialising it with our else data, and append content if tag is true (postData.content = '@everyone'
). This means the else block wouldn't be needed.
local postData = { username = 'QB Logs', embeds = {} }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your comment!!
OHHH YES, finally!!! |
Describe Pull request
This PR attempts to fix all linting errors of the smallresources script. There is still one error to be fixed, I would really thank any help.
If your PR is to fix an issue mention that issue here: No
Questions (please complete the following information):