pub struct AdminConversations {
    pub client: Client,
}

Fields

client: Client

Implementations

This function performs a POST to the /admin.conversations.archive endpoint.

Archive a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.archive

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a POST to the /admin.conversations.convertToPrivate endpoint.

Convert a public channel to a private channel.

FROM: https://api.slack.com/methods/admin.conversations.convertToPrivate

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a POST to the /admin.conversations.create endpoint.

Create a public or private channel-based conversation.

FROM: https://api.slack.com/methods/admin.conversations.create

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a POST to the /admin.conversations.delete endpoint.

Delete a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.delete

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a POST to the /admin.conversations.disconnectShared endpoint.

Disconnect a connected channel from one or more workspaces.

FROM: https://api.slack.com/methods/admin.conversations.disconnectShared

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a GET to the /admin.conversations.getConversationPrefs endpoint.

Get conversation preferences for a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.getConversationPrefs

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:read.
  • channel_id: &str – The channel to get preferences for.

This function performs a GET to the /admin.conversations.getTeams endpoint.

Get all the workspaces a given public or private channel is connected to within this Enterprise org.

FROM: https://api.slack.com/methods/admin.conversations.getTeams

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:read.
  • channel_id: &str – The channel to determine connected workspaces within the organization for.
  • cursor: &str – Set cursor to next_cursor returned by the previous call to list items in the next page.
  • limit: i64 – The maximum number of items to return. Must be between 1 - 1000 both inclusive.

This function performs a POST to the /admin.conversations.invite endpoint.

Invite a user to a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.invite

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a POST to the /admin.conversations.rename endpoint.

Rename a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.rename

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a GET to the /admin.conversations.search endpoint.

Search for public or private channels in an Enterprise organization.

FROM: https://api.slack.com/methods/admin.conversations.search

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:read.
  • team_ids: &str – Comma separated string of team IDs, signifying the workspaces to search through.
  • query: &str – Name of the the channel to query by.
  • limit: i64 – Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.
  • cursor: &str – Set cursor to next_cursor returned by the previous call to list items in the next page.
  • search_channel_types: &str – The type of channel to include or exclude in the search. For example private will search private channels, while private_exclude will exclude them. For a full list of types, check the Types section.
  • sort: &str – Possible values are relevant (search ranking based on what we think is closest), name (alphabetical), member_count (number of users in the channel), and created (date channel was created). You can optionally pair this with the sort_dir arg to change how it is sorted .
  • sort_dir: &str – Sort direction. Possible values are asc for ascending order like (1, 2, 3) or (a, b, c), and desc for descending order like (3, 2, 1) or (c, b, a).

This function performs a POST to the /admin.conversations.setConversationPrefs endpoint.

Set the posting permissions for a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.setConversationPrefs

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a POST to the /admin.conversations.setTeams endpoint.

Set the workspaces in an Enterprise grid org that connect to a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.setTeams

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

This function performs a POST to the /admin.conversations.unarchive endpoint.

Unarchive a public or private channel.

FROM: https://api.slack.com/methods/admin.conversations.unarchive

Parameters:

  • token: &str – Authentication token. Requires scope: admin.conversations:write.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more