@antiraid-ext/utils/jobserverpoll
API reference for @antiraid-ext/utils/jobserverpoll
@antiraid-ext/utils/jobserverpoll
Types
PollOptions
Raw Type
type PollOptions = {
jobId: string,
timeout_nostatuschange: number?,
callback: (dsP.Job) -> nil,
poll_interval: number
}
Prop | Type | Description |
---|---|---|
callback | - | |
jobId | - | |
timeout_nostatuschange? | - | |
poll_interval | - |
Functions
pollJobserverTillComplete
Function Signature
function pollJobserverTillComplete(ctx: Primitives.TemplateContext, opts: PollOptions) end
Arguments
ctx
opts
getIconOfState
Function Signature
function getIconOfState(state: string) -> string end
Arguments
state
Returns
ret1
_formatValue
Function Signature
function _formatValue(value: any) -> string end
Arguments
value
Returns
ret1
jobToEmbed
Function Signature
function jobToEmbed(ctx: Primitives.TemplateContext, job: dsP.Job, showStatuses: boolean?, showDownloadLink: boolean?) -> (apitypes.EmbedObject, {apitypes.ComponentObjects}) end
Arguments
ctx
job
showStatuses
This field is optional and may not be specified
showDownloadLink
This field is optional and may not be specified
Returns
ret1
ret2
Last updated on