chatClient

Methods
16
Fields
None

Getting one

chatClient

Methods

MethodReturnsDescription
getKcAsync(string, string)number?The kill count, nil until fetched. This never blocks: ask again later.
submitKcAsync(string, string, number)booleanSubmit the kill count, sent in the background; true when it was queued, whether or not the server takes it.
getQpAsync(string)number?Quest points, nil until fetched.
submitQpAsync(string, number)booleanSubmit quest points, sent in the background.
getGcAsync(string)number?The gamble count, nil until fetched.
submitGcAsync(string, number)booleanSubmit the gamble count, sent in the background.
getPbAsync(string, string)number?The personal best in seconds, nil until fetched.
submitPbAsync(string, string, number)booleanSubmit the personal best, sent in the background.
getTaskAsync(string)ChatTask?The slayer task, nil until fetched.
submitTaskAsync(string, string, number, number, string?)booleanSubmit the slayer task, sent in the background. location may be nil (a task with none): the parameter is sent with no value.
getDuelsAsync(string)Duels?The duel record, nil until fetched.
submitDuelsAsync(string, number, number, number, number)booleanSubmit the duel record, sent in the background.
getLayoutAsync(string){LayoutRoom}?The raid layout, nil until fetched.
submitLayoutAsync(string, {LayoutRoom})booleanSubmit the raid layout, sent in the background.
getPetListAsync(string){number}?The pets' item ids, nil until fetched.
submitPetListAsync(string, {number})booleanSubmit the pet list, sent in the background.

Method details

getKcAsync

getKcAsync: (ChatApi, string, string) -> number?

The kill count, nil until fetched. This never blocks: ask again later.

submitKcAsync

submitKcAsync: (ChatApi, string, string, number) -> boolean

Submit the kill count, sent in the background; true when it was queued, whether or not the server takes it.

submitQpAsync

submitQpAsync: (ChatApi, string, number) -> boolean

Submit quest points, sent in the background.

getGcAsync

getGcAsync: (ChatApi, string) -> number?

The gamble count, nil until fetched.

submitGcAsync

submitGcAsync: (ChatApi, string, number) -> boolean

Submit the gamble count, sent in the background.

getPbAsync

getPbAsync: (ChatApi, string, string) -> number?

The personal best in seconds, nil until fetched.

submitPbAsync

submitPbAsync: (ChatApi, string, string, number) -> boolean

Submit the personal best, sent in the background.

submitTaskAsync

submitTaskAsync: (ChatApi, string, string, number, number, string?) -> boolean

Submit the slayer task, sent in the background. location may be nil (a task with none): the parameter is sent with no value.

submitDuelsAsync

submitDuelsAsync: (ChatApi, string, number, number, number, number) -> boolean

Submit the duel record, sent in the background.