Skip to content

Commit

Permalink
Merge pull request #1605 from Kenshiin13/fix-logs
Browse files Browse the repository at this point in the history
fix(es_extended/server/functions): fix admin logs
  • Loading branch information
Kenshiin13 authored Jan 25, 2025
2 parents 2dac443 + db5128f commit c0b421f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions [core]/es_extended/server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ end
---@param fields table
---@return nil
function ESX.DiscordLogFields(name, title, color, fields)
for i = 1, #fields do
local field = fields[i]
field.value = tostring(field.value)
end

local webHook = Config.DiscordLogs.Webhooks[name] or Config.DiscordLogs.Webhooks.default
local embedData = {
{
Expand Down

0 comments on commit c0b421f

Please sign in to comment.