HandleConnection | name: string, source: number, deferrals: table, identifier?: string | — | Manually start the queue connection flow. Only used when queue:manual_connection is 1. |
GetDiscordUser | identifier: string | table? | Discord user data for a player by their primary identifier. nil if not found or Discord disabled. |
GetDiscordUserBySource | source: number | table? | Discord user data for a player by server id. nil if not found or Discord disabled. |
AddDiscordPrioRole | roleId: string | number, points: number | — | Add a Discord role → priority points mapping at runtime. |
RemoveDiscordPrioRole | roleId: string | number | — | Remove a Discord priority role. |
AddWhitelistRoleId | roleId: string | number | — | Add a Discord role ID to the whitelist (no duplicates). |
RemoveWhitelistRoleId | roleId: string | number | — | Remove a Discord role ID from the whitelist. |
AddBypassIdentifier | identifier: string | — | Add a full identifier to the queue bypass list (skips queue, can use reserved slots). |
RemoveBypassIdentifier | identifier: string | — | Remove an identifier from the bypass list. |
IsPlayerInQueue | identifier: string | boolean | Whether a player with that identifier is currently in the queue. |
GetPlayerPosition | identifier: string | table? | Queue position info for a player (position, totalInQueue). nil if not in queue. |
GetQueueLength | — | number | Current number of players in the queue. |
GetPlayerPriorityPoints | identifier: string | number? | Priority points for a player in the queue. nil if not in queue. |
GetTopQueuePlayers | count?: number | table[] | Top N players in queue (default 10). Each entry: priorityPoints, username, avatar. |
GetEstimatedWaitString | position: number, startupDelay: number | string? | Human-readable estimated wait (e.g. "2m 30s"). Uses startup delay or advance history. nil if unknown. |
GetConnectingPlayersCount | — | number | Number of players currently in the connecting state (post-queue, before fully loaded in). |
SetGracePriority | identifier: string, durationSeconds: number | — | Grant temporary grace priority; uses queue:grace_priority_points on next connect. Pass 0 or negative to clear. |
GetGracePriorityExpiry | identifier: string | number? | Unix timestamp when grace priority expires, or nil if none. |
RemoveGracePriority | identifier: string | — | Remove grace priority for an identifier (e.g. as an admin action). |
Locale | key: string, ...any | string | Get a localized string by key (same as queue UI). Supports format args, e.g. Locale('card_position', 1, 10, 5000). |
GetQueueConfig | — | table | Read-only snapshot of queue config (reserved_slots, max_slots, grace settings, etc.). |