megalanthus/defold-gamepush/gamepush.core.channels
GamePush channels: chats, members, invites, join requests, messages and channel state, with their events.
- GitHub: megalanthus/defold-gamepush — pinned to
v1.4.1- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as core_channels from "gamepush.core.channels"
- Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged
Functions
create_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)update_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)delete_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_channels(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_channels(parameters: Record<string, unknown>, callback?: (result: unknown) => void)open_chat(parameters?: Record<string, unknown>)is_main_chat_enabled(): booleanmain_chat_id(): numberjoin(parameters: Record<string, unknown>, callback?: (result: unknown) => void)cancel_join(parameters: Record<string, unknown>, callback?: (result: unknown) => void)leave(parameters: Record<string, unknown>, callback?: (result: unknown) => void)kick(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_members(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_members(parameters: Record<string, unknown>, callback?: (result: unknown) => void)mute(parameters: Record<string, unknown>, callback?: (result: unknown) => void)unmute(parameters: Record<string, unknown>, callback?: (result: unknown) => void)send_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)cancel_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)accept_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)reject_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_channel_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_channel_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_sent_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_sent_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)accept_join_request(parameters: Record<string, unknown>, callback?: (result: unknown) => void)reject_join_request(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_sent_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_sent_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)send_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)send_personal_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)send_feed_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)edit_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)delete_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_personal_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_feed_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_personal_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)fetch_more_feed_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)set_value(parameters:ChannelValueParameters, callback?: (result: unknown) => void)add_value(parameters:ChannelAddValueParameters, callback?: (result: unknown) => void)
create_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Creates a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.createChannel.callback?:(result: unknown) => void— Receives the result.
update_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Updates a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.updateChannel.callback?:(result: unknown) => void— Receives the result.
delete_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Deletes a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.deleteChannel.callback?:(result: unknown) => void— Receives the result.
fetch_channel(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches a channel by its id. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchChannel.callback?:(result: unknown) => void— Receives the result.
fetch_channels(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches a list of channels. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchChannels.callback?:(result: unknown) => void— Receives the result.
fetch_more_channels(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of channels. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreChannels.callback?:(result: unknown) => void— Receives the result.
open_chat(parameters?: Record<string, unknown>)
Opens the chat window.
Parameters
parameters?:Record<string, unknown>— The options for the SDK'schannels.openChat, or nil for the main chat.
is_main_chat_enabled(): boolean
Whether the main chat can be shown.
Returns
boolean
main_chat_id(): number
The main chat's id.
Returns
number
join(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Joins a public channel, or asks to join it. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.join.callback?:(result: unknown) => void— Receives the result.
cancel_join(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Cancels a request to join a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.cancelJoin.callback?:(result: unknown) => void— Receives the result.
leave(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Leaves a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.leave.callback?:(result: unknown) => void— Receives the result.
kick(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Removes a member from a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.kick.callback?:(result: unknown) => void— Receives the result.
fetch_members(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches a channel's members. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMembers.callback?:(result: unknown) => void— Receives the result.
fetch_more_members(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of a channel's members. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreMembers.callback?:(result: unknown) => void— Receives the result.
mute(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Mutes a player in a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.mute.callback?:(result: unknown) => void— Receives the result.
unmute(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Unmutes a player in a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.unmute.callback?:(result: unknown) => void— Receives the result.
send_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Invites a player to a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.sendInvite.callback?:(result: unknown) => void— Receives the result.
cancel_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Cancels an invite. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.cancelInvite.callback?:(result: unknown) => void— Receives the result.
accept_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Accepts an invite to a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.acceptInvite.callback?:(result: unknown) => void— Receives the result.
reject_invite(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Rejects an invite to a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.rejectInvite.callback?:(result: unknown) => void— Receives the result.
fetch_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the player's invites to channels. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchInvites.callback?:(result: unknown) => void— Receives the result.
fetch_more_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of the player's invites. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreInvites.callback?:(result: unknown) => void— Receives the result.
fetch_channel_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the invites sent from a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchChannelInvites.callback?:(result: unknown) => void— Receives the result.
fetch_more_channel_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of the invites sent from a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreChannelInvites.callback?:(result: unknown) => void— Receives the result.
fetch_sent_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the invites the player sent to other players. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchSentInvites.callback?:(result: unknown) => void— Receives the result.
fetch_more_sent_invites(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of the invites the player sent. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreSentInvites.callback?:(result: unknown) => void— Receives the result.
accept_join_request(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Accepts a request to join a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.acceptJoinRequest.callback?:(result: unknown) => void— Receives the result.
reject_join_request(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Rejects a request to join a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.rejectJoinRequest.callback?:(result: unknown) => void— Receives the result.
fetch_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the requests to join a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchJoinRequests.callback?:(result: unknown) => void— Receives the result.
fetch_more_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of the requests to join a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreJoinRequests.callback?:(result: unknown) => void— Receives the result.
fetch_sent_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the requests to join that the player sent. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchSentJoinRequests.callback?:(result: unknown) => void— Receives the result.
fetch_more_sent_join_requests(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of the requests to join that the player sent. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreSentJoinRequests.callback?:(result: unknown) => void— Receives the result.
send_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Sends a message to a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.sendMessage.callback?:(result: unknown) => void— Receives the result.
send_personal_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Sends a personal message to a player. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.sendPersonalMessage.callback?:(result: unknown) => void— Receives the result.
send_feed_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Posts a message to a player's feed. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.sendFeedMessage.callback?:(result: unknown) => void— Receives the result.
edit_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Edits a message. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.editMessage.callback?:(result: unknown) => void— Receives the result.
delete_message(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Deletes a message. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.deleteMessage.callback?:(result: unknown) => void— Receives the result.
fetch_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the messages in a channel. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMessages.callback?:(result: unknown) => void— Receives the result.
fetch_personal_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the personal messages with another player. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchPersonalMessages.callback?:(result: unknown) => void— Receives the result.
fetch_feed_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the messages in a player's feed. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchFeedMessages.callback?:(result: unknown) => void— Receives the result.
fetch_more_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of a channel's messages. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreMessages.callback?:(result: unknown) => void— Receives the result.
fetch_more_personal_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of the personal messages with another player. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMorePersonalMessages.callback?:(result: unknown) => void— Receives the result.
fetch_more_feed_messages(parameters: Record<string, unknown>, callback?: (result: unknown) => void)
Fetches the next page of the messages in a player's feed. Raises when the table is missing.
Parameters
parameters:Record<string, unknown>— The options for the SDK'schannels.fetchMoreFeedMessages.callback?:(result: unknown) => void— Receives the result.
set_value(parameters: ChannelValueParameters, callback?: (result: unknown) => void)
Sets a value in a channel's state. Raises when the table is missing.
Parameters
parameters:ChannelValueParameters— The channel, key and value.callback?:(result: unknown) => void— Receives the result.
add_value(parameters: ChannelAddValueParameters, callback?: (result: unknown) => void)
Adds to a number in a channel's state. Raises when the table is missing.
Parameters
parameters:ChannelAddValueParameters— The channel, key and amount.callback?:(result: unknown) => void— Receives the result.
Variables
callbacks: ChannelsCallbacks
The channel event handlers.
Types
ChannelValueParameters
ChannelValueParameters.channelId: number
The channel's id.
ChannelValueParameters.key: string
The state key.
ChannelValueParameters.value: unknown
The value to store under the key.
ChannelAddValueParameters
ChannelAddValueParameters.channelId: number
The channel's id.
ChannelAddValueParameters.key: string
The state key.
ChannelAddValueParameters.value: number
The amount to add to the number stored under the key.
ChannelsCallbacks
ChannelsCallbacks.create_channel?: (channel: unknown) => void
A channel was created.
ChannelsCallbacks.error_create_channel?: (error: unknown) => void
Creating a channel failed.
ChannelsCallbacks.update_channel?: (channel: unknown) => void
A channel was updated.
ChannelsCallbacks.error_update_channel?: (error: unknown) => void
Updating a channel failed.
ChannelsCallbacks.event_update_channel?: (channel: unknown) => void
A channel the player is in was changed.
ChannelsCallbacks.delete_channel?: () => void
A channel was deleted.
ChannelsCallbacks.error_delete_channel?: (error: unknown) => void
Deleting a channel failed.
ChannelsCallbacks.event_delete_channel?: (channel: unknown) => void
A channel the player is in was deleted.
ChannelsCallbacks.fetch_channel?: (channel: unknown) => void
A channel was fetched.
ChannelsCallbacks.error_fetch_channel?: (error: unknown) => void
Fetching a channel failed.
ChannelsCallbacks.fetch_channels?: (result: unknown) => void
A list of channels was fetched.
ChannelsCallbacks.error_fetch_channels?: (error: unknown) => void
Fetching a list of channels failed.
ChannelsCallbacks.fetch_more_channels?: (result: unknown) => void
The next page of channels was fetched.
ChannelsCallbacks.error_fetch_more_channels?: (error: unknown) => void
Fetching the next page of channels failed.
ChannelsCallbacks.open_chat?: () => void
The chat window was opened.
ChannelsCallbacks.close_chat?: () => void
The chat window was closed.
ChannelsCallbacks.error_open_chat?: (error: unknown) => void
Opening the chat window failed.
ChannelsCallbacks.join?: (result: unknown) => void
The player joined a channel or asked to join it.
ChannelsCallbacks.error_join?: (error: unknown) => void
Joining a channel failed.
ChannelsCallbacks.event_join?: (result: unknown) => void
A player joined a channel.
ChannelsCallbacks.event_join_request?: (result: unknown) => void
A player asked to join a channel.
ChannelsCallbacks.cancel_join?: (result: unknown) => void
A request to join was cancelled.
ChannelsCallbacks.error_cancel_join?: (error: unknown) => void
Cancelling a request to join failed.
ChannelsCallbacks.event_cancel_join?: (result: unknown) => void
A player cancelled a request to join.
ChannelsCallbacks.leave?: (result: unknown) => void
The player left a channel.
ChannelsCallbacks.error_leave?: (error: unknown) => void
Leaving a channel failed.
ChannelsCallbacks.event_leave?: (result: unknown) => void
A player left a channel.
ChannelsCallbacks.kick?: (result: unknown) => void
A member was removed from a channel.
ChannelsCallbacks.error_kick?: (error: unknown) => void
Removing a member from a channel failed.
ChannelsCallbacks.fetch_members?: (result: unknown) => void
A channel's members were fetched.
ChannelsCallbacks.error_fetch_members?: (error: unknown) => void
Fetching a channel's members failed.
ChannelsCallbacks.fetch_more_members?: (result: unknown) => void
The next page of a channel's members was fetched.
ChannelsCallbacks.error_fetch_more_members?: (error: unknown) => void
Fetching the next page of a channel's members failed.
ChannelsCallbacks.mute?: (result: unknown) => void
A player was muted.
ChannelsCallbacks.error_mute?: (error: unknown) => void
Muting a player failed.
ChannelsCallbacks.event_mute?: (result: unknown) => void
A player was muted in a channel.
ChannelsCallbacks.unmute?: (result: unknown) => void
A player was unmuted.
ChannelsCallbacks.error_unmute?: (error: unknown) => void
Unmuting a player failed.
ChannelsCallbacks.event_unmute?: (result: unknown) => void
A player was unmuted in a channel.
ChannelsCallbacks.send_invite?: (result: unknown) => void
An invite was sent.
ChannelsCallbacks.error_send_invite?: (error: unknown) => void
Sending an invite failed.
ChannelsCallbacks.event_invite?: (result: unknown) => void
The player was invited to a channel.
ChannelsCallbacks.cancel_invite?: (result: unknown) => void
An invite was cancelled.
ChannelsCallbacks.error_cancel_invite?: (error: unknown) => void
Cancelling an invite failed.
ChannelsCallbacks.event_cancel_invite?: (result: unknown) => void
An invite to the player was cancelled.
ChannelsCallbacks.accept_invite?: (result: unknown) => void
An invite was accepted.
ChannelsCallbacks.error_accept_invite?: (error: unknown) => void
Accepting an invite failed.
ChannelsCallbacks.reject_invite?: (result: unknown) => void
An invite was rejected.
ChannelsCallbacks.error_reject_invite?: (error: unknown) => void
Rejecting an invite failed.
ChannelsCallbacks.event_reject_invite?: (result: unknown) => void
A player rejected an invite.
ChannelsCallbacks.fetch_invites?: (result: unknown) => void
The player's invites were fetched.
ChannelsCallbacks.error_fetch_invites?: (error: unknown) => void
Fetching the player's invites failed.
ChannelsCallbacks.fetch_more_invites?: (result: unknown) => void
The next page of the player's invites was fetched.
ChannelsCallbacks.error_fetch_more_invites?: (error: unknown) => void
Fetching the next page of the player's invites failed.
ChannelsCallbacks.fetch_channel_invites?: (result: unknown) => void
The invites sent from a channel were fetched.
ChannelsCallbacks.error_fetch_channel_invites?: (error: unknown) => void
Fetching the invites sent from a channel failed.
ChannelsCallbacks.fetch_more_channel_invites?: (result: unknown) => void
The next page of the invites sent from a channel was fetched.
ChannelsCallbacks.error_fetch_more_channel_invites?: (error: unknown) => void
Fetching the next page of the invites sent from a channel failed.
ChannelsCallbacks.fetch_sent_invites?: (result: unknown) => void
The invites the player sent were fetched.
ChannelsCallbacks.error_fetch_sent_invites?: (error: unknown) => void
Fetching the invites the player sent failed.
ChannelsCallbacks.fetch_more_sent_invites?: (result: unknown) => void
The next page of the invites the player sent was fetched.
ChannelsCallbacks.error_fetch_more_sent_invites?: (error: unknown) => void
Fetching the next page of the invites the player sent failed.
ChannelsCallbacks.accept_join_request?: (result: unknown) => void
A request to join was accepted.
ChannelsCallbacks.error_accept_join_request?: (error: unknown) => void
Accepting a request to join failed.
ChannelsCallbacks.reject_join_request?: (result: unknown) => void
A request to join was rejected.
ChannelsCallbacks.error_reject_join_request?: (error: unknown) => void
Rejecting a request to join failed.
ChannelsCallbacks.event_reject_join_request?: (result: unknown) => void
The player's request to join was rejected.
ChannelsCallbacks.fetch_join_requests?: (result: unknown) => void
The requests to join a channel were fetched.
ChannelsCallbacks.error_fetch_join_requests?: (error: unknown) => void
Fetching the requests to join a channel failed.
ChannelsCallbacks.fetch_more_join_requests?: (result: unknown) => void
The next page of the requests to join a channel was fetched.
ChannelsCallbacks.error_fetch_more_join_requests?: (error: unknown) => void
Fetching the next page of the requests to join a channel failed.
ChannelsCallbacks.fetch_sent_join_requests?: (result: unknown) => void
The requests to join that the player sent were fetched.
ChannelsCallbacks.error_fetch_sent_join_requests?: (error: unknown) => void
Fetching the requests to join that the player sent failed.
ChannelsCallbacks.fetch_more_sent_join_requests?: (result: unknown) => void
The next page of the requests to join that the player sent was fetched.
ChannelsCallbacks.error_fetch_more_sent_join_requests?: (error: unknown) => void
Fetching the next page of the requests to join that the player sent failed.
ChannelsCallbacks.send_message?: (result: unknown) => void
A message was sent.
ChannelsCallbacks.error_send_message?: (error: unknown) => void
Sending a message failed.
ChannelsCallbacks.event_message?: (message: unknown) => void
A new message arrived.
ChannelsCallbacks.edit_message?: (result: unknown) => void
A message was edited.
ChannelsCallbacks.error_edit_message?: (error: unknown) => void
Editing a message failed.
ChannelsCallbacks.event_edit_message?: (message: unknown) => void
A message in a channel was edited.
ChannelsCallbacks.delete_message?: (result: unknown) => void
A message was deleted.
ChannelsCallbacks.error_delete_message?: (error: unknown) => void
Deleting a message failed.
ChannelsCallbacks.event_delete_message?: (message: unknown) => void
A message in a channel was deleted.
ChannelsCallbacks.fetch_messages?: (result: unknown) => void
Messages were fetched.
ChannelsCallbacks.error_fetch_messages?: (error: unknown) => void
Fetching messages failed.
ChannelsCallbacks.fetch_more_messages?: (result: unknown) => void
The next page of messages was fetched.
ChannelsCallbacks.error_fetch_more_messages?: (error: unknown) => void
Fetching the next page of messages failed.
ChannelsCallbacks.set_value?: (result: unknown) => void
A channel state value was set.
ChannelsCallbacks.error_set_value?: (error: unknown) => void
Setting a channel state value failed.
ChannelsCallbacks.add_value?: (result: unknown) => void
A channel state value was added to.
ChannelsCallbacks.error_add_value?: (error: unknown) => void
Adding to a channel state value failed.
ChannelsCallbacks.event_change_value?: (result: unknown) => void
A channel state value changed.