The name of the channel to which the command will be added.
The name of the command to be added.
Adds users to a channel using the chat provider.
The ID of the channel to which the user will be added.
The type of the channel to which the user will be added.
The users to add to the channel. This can be an array of user IDs or an array of objects containing the user ID and the channel role.
Adds moderators to a channel using the chat provider.
The ID of the channel to which the moderators will be added.
The type of the channel to which the moderators will be added.
The moderators to add to the channel.
Creates a channel using the chat provider.
The ID of the channel to create.
The name of the channel to create.
The type of the channel to create.
The ID of the user who created the channel.
OptionalimageUrl: stringThe URL of the image to use for the channel.
Creates a custom command.
Attempts to create a command using the provided command object. If the command
is successfully created, the method returns true. If an error occurs during the
creation of the command, the method logs the error and returns false.
The command to be created.
A promise that resolves to true if the command was
successfully created, or false otherwise.
Creates a user using the chat provider.
The ID of the user to create.
The name of the user to create.
Optionalrole: ChannelMemberRoleThe role of the user to create.
Retrieves a chat channel based on its type and ID.
The ID of the chat channel to retrieve.
The type of the chat channel to retrieve.
the matched chat channel or null if not found.
Removes users to a channel using the chat provider.
The ID of the channel to which the user will be added.
The type of the channel to which the user will be added.
The IDs of the users to remove from the channel.
Sends a message to a chat channel.
The ID of the channel to which the message will be sent.
The type of the channel to which the message will be sent.
The user who is sending the message
The message to send.
A promise that resolves with a boolean that designates if the message sent.
Updates (partial) a channel using the chat provider.
The ID of the channel to update.
The type of the channel to update.
Updates a custom command.
Attempts to update a command with the specified name using the provided options object.
If the command is successfully updated, the method returns true. If an error occurs
during the update of the command, the method logs the error and returns false.
The name of the command to be updated.
The options object containing the new values for the command.
A promise that resolves to true if the command was
successfully updated, or false otherwise.
Updates (partial) a user using the chat provider.
The ID of the user to update.
The fields to update on the user.
Adds a command to a specified channel type.