Refactor calendar context functions to improve documentation clarity and parameter usage

This commit is contained in:
2025-05-18 00:53:16 +02:00
parent 377b3b7aa7
commit e01a681d66
5 changed files with 45 additions and 56 deletions

View File

@@ -1,15 +1,13 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param monthOffset CalendarContextSelectEvent
---@param -1
---@param 0
---@param 1
---@param nil CalendarContextSelectEvent
---@param day number
---@param index number
---@return MODERATOR modStatus
---@return CREATOR
---@return MODERATOR
---@alias modStatus #The player's level of authority for the event, or "" if not applicable
---| "MODERATOR" The player has been granted moderator status for the event
---| "CREATOR" The player is the original creator of the event
---@param monthOffset monthOffset
---@param day number
---@param index number
---@return modStatus modStatus
---Returns the player's moderator status for an event
function CalendarContextInviteModeratorStatus(monthOffset, -1, 0, 1, nil, day, index) end
function CalendarContextInviteModeratorStatus(monthOffset, day, index) end