Create, update, and query the available channels in Slack.
The 本製品 will use the Slack API to process search criteria that refer to the Id, IsArchived, IsPublic, IsGroup, IsDirectMessage, and IsMultipartyDirectMessage columns. These columns support server-side processing for the = operator. The 本製品 processes other filters client-side within the 本製品.
For example, the following queries are processed server side by the Slack APIs:
SELECT * FROM Channels WHERE IsPublic = false AND IsGroup = false AND IsArchived = true SELECT * FROM Channels WHERE Id = 'D71R6CSR1'You can turn off the client-side execution of the query by setting SupportEnhancedSQL to false in which case any search criteria that refers to other columns will cause an error.
The Name column is the minimum requirement for an insert. Name and IsPublic are the only columns that can be set on an insert.
INSERT INTO Channels (Name, IsPublic) VALUES ('initialname', true)
The Channels table allows updates for columns Name, Purpose, and Topic when Id is specified.
UPDATE Channels SET Topic = 'A Topic Text', Purpose = 'A Purpose Text', Name = 'updatedname' WHERE Id = 'D71R6CSR1'
Slack does not allow Channels to be deleted.
The Id of the channel.
The name of the channel.
Information about the channel topic.
Creator of the channel topic.
Information about the channel purpose.
Number of members in the channel.
Channel creation datetime.
User ID of the member that created this channel.
The datetime for the last message the calling user has read in this channel.
Indicates the user or bot user or Slack app associated with the token making the API call is itself a member of the conversation.
Indicates a conversation is archived. Frozen in time
Indicates whether a conversation is a public channel. Everything said in a public channel can be read by anyone else belonging to a workspace.
Indicates whether the channel is a private channel between a group of members.
Means the conversation is a direct message between two distinguished individuals or a user and a bot.
Represents an unnamed private conversation between multiple users.
Means the channel is the workspace's 'general' discussion channel.
Number of times a link to the channel has been removed.
Normalized name of the channel.
Means the conversation is in some way shared between multiple workspaces.
Represents this conversation as being part of a Shared Channel with a remote organization.
Explains whether this shared channel is shared between Enterprise Grid workspaces within the same organization.
It means the conversation is ready to become an IsExtShared channel but isn't quite ready yet and needs some kind of approval or sign off.
A list of previous names this channel has had.
Locale of the channel.