Skip to content

Commit 8518e03

Browse files
committed
fix(deferrals): actually defer the player to check if they meet the discord requirements.
1 parent ee6785a commit 8518e03

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

fxmanifest.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ game "gta5"
44
name "DiscordAPI"
55
description "An all one in solution for Discord API, that controls chat tags, permissions."
66
author "ricky"
7-
version "v2.2.0"
7+
version "v2.2.1"
88

99
lua54 "yes"
1010

sv_deferrals.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ if not Config.DiscordRequired then return end
22

33
local GuildRequired = Config.GuildRequired
44

5-
AddEventHandler("playerConnecting", function(name, setKickReason, deferrals)
5+
AddEventHandler("playerConnecting", function(_, _, deferrals)
6+
deferrals.defer()
7+
Wait(0)
8+
69
local identifiers = GetIdentifiersTable(source)
710
local discord = identifiers.discord
811

0 commit comments

Comments
 (0)