Class ConversationsRenameRequest
java.lang.Object
com.slack.api.methods.request.conversations.ConversationsRenameRequest
- All Implemented Interfaces:
SlackApiRequest
https://docs.slack.dev/reference/methods/conversations.rename
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanID of conversation to renamegetName()New name for conversation.getToken()Authentication token.inthashCode()voidsetChannel(String channel) ID of conversation to renamevoidNew name for conversation.voidAuthentication token.toString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `conversations:write`- Specified by:
getTokenin interfaceSlackApiRequest- Returns:
- token string value or null
-
getChannel
ID of conversation to rename -
getName
New name for conversation.Conversation names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 21 characters or less. We will validate the submitted channel name and modify it to meet the above criteria. When calling this method, we recommend storing the channel's name value that is returned in the response.
-
setToken
Authentication token. Requires scope: `conversations:write`- Specified by:
setTokenin interfaceSlackApiRequest
-
setChannel
ID of conversation to rename -
setName
New name for conversation.Conversation names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 21 characters or less. We will validate the submitted channel name and modify it to meet the above criteria. When calling this method, we recommend storing the channel's name value that is returned in the response.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-