ChannelsApi class

Constructors

ChannelsApi(Dio _dio, Serializers _serializers)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChannelMember({required String channelId, required InlineObject53 inlineObject53, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<ChannelMember>>
Add user to channel Add a user to a channel by creating a channel member object.
autocompleteChannelsForTeam({required String teamId, required String name, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Autocomplete channels Autocomplete public channels on a team based on the search term provided in the request URL. Minimum server version: 4.7 ##### Permissions Must have the `list_team_channels` permission.
autocompleteChannelsForTeamForSearch({required String teamId, required String name, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Autocomplete channels for search Autocomplete your channels on a team based on the search term provided in the request URL. Minimum server version: 5.4 ##### Permissions Must have the `list_team_channels` permission.
channelMembersMinusGroupMembers({required String channelId, String groupIds = '', int? page = 0, int? perPage = 0, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Channel members minus group members. Get the set of users who are members of the channel minus the set of users who are members of the given groups. Each user object contains an array of group objects representing the group memberships for that user. Each user object contains the boolean fields `scheme_guest`, `scheme_user`, and `scheme_admin` representing the roles that user has for the given channel. ##### Permissions Must have `manage_system` permission. Minimum server version: 5.14
createChannel({required InlineObject44 inlineObject44, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Create a channel Create a new channel. ##### Permissions If creating a public channel, `create_public_channel` permission is required. If creating a private channel, `create_private_channel` permission is required.
createDirectChannel({required BuiltList<String> requestBody, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Create a direct message channel Create a new direct message channel between two users. ##### Permissions Must be one of the two users and have `create_direct_channel` permission. Having the `manage_system` permission voids the previous requirements.
createGroupChannel({required BuiltList<String> requestBody, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Create a group message channel Create a new group message channel to group of users. If the logged in user's id is not included in the list, it will be appended to the end. ##### Permissions Must have `create_group_channel` permission.
createSidebarCategoryForTeamForUser({required String teamId, required String userId, required SidebarCategory sidebarCategory, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SidebarCategory>>
Create user's sidebar category Create a custom sidebar category for the user on the given team. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
deleteChannel({required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<StatusOK>>
Delete a channel Soft deletes a channel, by marking the channel as deleted in the database. Soft deleted channels will not be accessible in the user interface. Direct and group message channels cannot be deleted. As of server version 5.28, optionally use the `permanent=true` query parameter to permanently delete the channel for compliance reasons. To use this feature `ServiceSettings.EnableAPIChannelDeletion` must be set to `true` in the server's configuration. ##### Permissions `delete_public_channel` permission if the channel is public, `delete_private_channel` permission if the channel is private, or have `manage_system` permission.
getAllChannels({String? notAssociatedToGroup, int? page = 0, int? perPage = 0, bool? excludeDefaultChannels = false, bool? excludePolicyConstrained = false, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<ChannelWithTeamData>>>
Get a list of all channels
getChannel({required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Get a channel Get channel from the provided channel id string. ##### Permissions `read_channel` permission for the channel.
getChannelByName({required String teamId, required String channelName, bool? includeDeleted = false, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Get a channel by name Gets channel from the provided team id and channel name strings. ##### Permissions `read_channel` permission for the channel.
getChannelByNameForTeamName({required String teamName, required String channelName, bool? includeDeleted = false, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Get a channel by name and team name Gets a channel from the provided team name and channel name strings. ##### Permissions `read_channel` permission for the channel.
getChannelMember({required String channelId, required String userId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<ChannelMember>>
Get channel member Get a channel member. ##### Permissions `read_channel` permission for the channel.
getChannelMemberCountsByGroup({required String channelId, bool? includeTimezones = false, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<void>>
Channel members counts for each group that has atleast one member in the channel Returns a set of ChannelMemberCountByGroup objects which contain a `group_id`, `channel_member_count` and a `channel_member_timezones_count`. ##### Permissions Must have `read_channel` permission for the given channel. Minimum server version: 5.24
getChannelMembers({required String channelId, int? page = 0, int? perPage = 60, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<ChannelMember>>>
Get channel members Get a page of members for a channel. ##### Permissions `read_channel` permission for the channel.
getChannelMembersByIds({required String channelId, required BuiltList<String> requestBody, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<ChannelMember>>>
Get channel members by ids Get a list of channel members based on the provided user ids. ##### Permissions Must have the `read_channel` permission.
getChannelMembersForUser({required String userId, required String teamId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<ChannelMember>>>
Get channel memberships and roles for a user Get all channel memberships and associated membership roles (i.e. `channel_user`, `channel_admin`) for a user on a specific team. ##### Permissions Logged in as the user and `view_team` permission for the team. Having `manage_system` permission voids the previous requirements.
getChannelMembersTimezones({required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<String>>>
Get timezones in a channel Get a list of timezones for the users who are in this channel. Minimum server version: 5.6 ##### Permissions Must have the `read_channel` permission.
getChannelModerations({required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<ChannelModeration>>>
Get information about channel's moderation.
getChannelsForTeamForUser({required String userId, required String teamId, bool? includeDeleted = false, int? lastDeleteAt = 0, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Get channels for user Get all the channels on a team for a user. ##### Permissions Logged in as the user, or have `edit_other_users` permission, and `view_team` permission for the team.
getChannelsForUser({required String userId, int? lastDeleteAt = 0, bool? includeDeleted = false, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Get all channels from all teams Get all channels from all teams that a user is a member of. Minimum server version: 6.1 ##### Permissions Logged in as the user, or have `edit_other_users` permission.
getChannelStats({required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<ChannelStats>>
Get channel statistics Get statistics for a channel. ##### Permissions Must have the `read_channel` permission.
getChannelUnread({required String userId, required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<ChannelUnread>>
Get unread messages Get the total unread messages and mentions for a channel for a user. ##### Permissions Must be logged in as user and have the `read_channel` permission, or have `edit_other_usrs` permission.
getDeletedChannelsForTeam({required String teamId, int? page = 0, int? perPage = 60, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Get deleted channels Get a page of deleted channels on a team based on query string parameters - team_id, page and per_page. Minimum server version: 3.10
getPinnedPosts({required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<PostList>>
Get a channel's pinned posts Get a list of pinned posts for channel.
getPrivateChannelsForTeam({required String teamId, int? page = 0, int? perPage = 60, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Get private channels Get a page of private channels on a team based on query string parameters - team_id, page and per_page. Minimum server version: 5.26 ##### Permissions Must have `manage_system` permission.
getPublicChannelsByIdsForTeam({required String teamId, required BuiltList<String> requestBody, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Get a list of channels by ids Get a list of public channels on a team by id. ##### Permissions `view_team` for the team the channels are on.
getPublicChannelsForTeam({required String teamId, int? page = 0, int? perPage = 60, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Get public channels Get a page of public channels on a team based on query string parameters - page and per_page. ##### Permissions Must be authenticated and have the `list_team_channels` permission.
getSidebarCategoriesForTeamForUser({required String teamId, required String userId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<OrderedSidebarCategories>>>
Get user's sidebar categories Get a list of sidebar categories that will appear in the user's sidebar on the given team, including a list of channel IDs in each category. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
getSidebarCategoryForTeamForUser({required String teamId, required String userId, required String categoryId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SidebarCategory>>
Get sidebar category Returns a single sidebar category for the user on the given team. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
getSidebarCategoryOrderForTeamForUser({required String teamId, required String userId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<String>>>
Get user's sidebar category order Returns the order of the sidebar categories for a user on the given team as an array of IDs. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
moveChannel({required String channelId, required InlineObject50 inlineObject50, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Move a channel Move a channel to another team. Minimum server version: 5.26 ##### Permissions Must have `manage_system` permission.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchChannel({required String channelId, required InlineObject48 inlineObject48, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Patch a channel Partially update a channel by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions If updating a public channel, `manage_public_channel_members` permission is required. If updating a private channel, `manage_private_channel_members` permission is required.
patchChannelModerations({required String channelId, required ChannelModerationPatch channelModerationPatch, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<ChannelModeration>>>
Update a channel's moderation settings.
removeSidebarCategoryForTeamForUser({required String teamId, required String userId, required String categoryId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SidebarCategory>>
Delete sidebar category Deletes a single sidebar category for the user on the given team. Only custom categories can be deleted. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
removeUserFromChannel({required String channelId, required String userId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<StatusOK>>
Remove user from channel Delete a channel member, effectively removing them from a channel. In server version 5.3 and later, channel members can only be deleted from public or private channels. ##### Permissions `manage_public_channel_members` permission if the channel is public. `manage_private_channel_members` permission if the channel is private.
restoreChannel({required String channelId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Restore a channel Restore channel from the provided channel id string. Minimum server version: 3.10 ##### Permissions `manage_team` permission for the team of the channel.
searchAllChannels({required InlineObject45 inlineObject45, bool? systemConsole = true, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<InlineResponse2007>>
Search all private and open type channels across all teams Returns all private and open type channels where 'term' matches on the name, display name, or purpose of the channel. Configured 'default' channels (ex Town Square and Off-Topic) can be excluded from the results with the `exclude_default_channels` boolean parameter. Channels that are associated (via GroupChannel records) to a given group can be excluded from the results with the `not_associated_to_group` parameter and a group id string.
searchArchivedChannels({required String teamId, required InlineObject52 inlineObject52, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Search archived channels Search archived channels on a team based on the search term provided in the request body. Minimum server version: 5.18 ##### Permissions Must have the `list_team_channels` permission. In server version 5.18 and later, a user without the `list_team_channels` permission will be able to use this endpoint, with the search results limited to the channels that the user is a member of.
searchChannels({required String teamId, required InlineObject51 inlineObject51, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Search channels Search public channels on a team based on the search term provided in the request body. ##### Permissions Must have the `list_team_channels` permission. In server version 5.16 and later, a user without the `list_team_channels` permission will be able to use this endpoint, with the search results limited to the channels that the user is a member of.
searchGroupChannels({required InlineObject46 inlineObject46, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<Channel>>>
Search Group Channels Get a list of group channels for a user which members' usernames match the search term. Minimum server version: 5.14
toString() String
A string representation of this object.
inherited
updateChannel({required String channelId, required InlineObject47 inlineObject47, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Update a channel Update a channel. The fields that can be updated are listed as parameters. Omitted fields will be treated as blanks. ##### Permissions If updating a public channel, `manage_public_channel_members` permission is required. If updating a private channel, `manage_private_channel_members` permission is required.
updateChannelMemberSchemeRoles({required String channelId, required String userId, required InlineObject55 inlineObject55, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<StatusOK>>
Update the scheme-derived roles of a channel member. Update a channel member's scheme_admin/scheme_user properties. Typically this should either be `scheme_admin=false, scheme_user=true` for ordinary channel member, or `scheme_admin=true, scheme_user=true` for a channel admin. Minimum server version: 5.0 ##### Permissions Must be authenticated and have the `manage_channel_roles` permission.
updateChannelNotifyProps({required String channelId, required String userId, required ChannelNotifyProps channelNotifyProps, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<StatusOK>>
Update channel notifications Update a user's notification properties for a channel. Only the provided fields are updated. ##### Permissions Must be logged in as the user or have `edit_other_users` permission.
updateChannelPrivacy({required String channelId, required InlineObject49 inlineObject49, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<Channel>>
Update channel's privacy Updates channel's privacy allowing changing a channel from Public to Private and back. Minimum server version: 5.16 ##### Permissions `manage_team` permission for the channels team on version < 5.28. `convert_public_channel_to_private` permission for the channel if updating privacy to 'P' on version >= 5.28. `convert_private_channel_to_public` permission for the channel if updating privacy to 'O' on version >= 5.28.
updateChannelRoles({required String channelId, required String userId, required InlineObject54 inlineObject54, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<StatusOK>>
Update channel roles Update a user's roles for a channel. ##### Permissions Must have `manage_channel_roles` permission for the channel.
updateChannelScheme({required String channelId, required InlineObject57 inlineObject57, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<StatusOK>>
Set a channel's scheme Set a channel's scheme, more specifically sets the scheme_id value of a channel record. ##### Permissions Must have `manage_system` permission. Minimum server version: 4.10
updateSidebarCategoriesForTeamForUser({required String teamId, required String userId, required BuiltList<SidebarCategory> sidebarCategory, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SidebarCategory>>
Update user's sidebar categories Update any number of sidebar categories for the user on the given team. This can be used to reorder the channels in these categories. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
updateSidebarCategoryForTeamForUser({required String teamId, required String userId, required String categoryId, required SidebarCategory sidebarCategory, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SidebarCategory>>
Update sidebar category Updates a single sidebar category for the user on the given team. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
updateSidebarCategoryOrderForTeamForUser({required String teamId, required String userId, required BuiltList<String> requestBody, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<String>>>
Update user's sidebar category order Updates the order of the sidebar categories for a user on the given team. The provided array must include the IDs of all categories on the team. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the `list_team_channels` permission.
viewChannel({required String userId, required InlineObject56 inlineObject56, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<InlineResponse2008>>
View channel Perform all the actions involved in viewing a channel. This includes marking channels as read, clearing push notifications, and updating the active channel. ##### Permissions Must be logged in as user or have `edit_other_users` permission. Response only includes `last_viewed_at_times` in Mattermost server 4.3 and newer.

Operators

operator ==(Object other) bool
The equality operator.
inherited