Skip to content

Commit 2f715e2

Browse files
authored
fix(discord_api): default return for isRolePresent
Added a default return value of `false` to isRolePresent.
1 parent 59b6617 commit 2f715e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sv_discord_api.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ function isRolePresent(user, role)
7272
return true
7373
end
7474
end
75+
76+
return false
7577
end
7678

7779
Citizen.CreateThread(function()
@@ -84,4 +86,4 @@ Citizen.CreateThread(function()
8486

8587
local data = decode(guild.data)
8688
Log("Permission guild was set to: " .. data.name .. " (ID: " .. data.id .. ")")
87-
end)
89+
end)

0 commit comments

Comments
 (0)