Make sure your app is a member of the conversation it's attempting to post a message to. The workspace token used in this request does not have the permissions necessary to complete the request. The token type used in this request is not allowed. The token used is not granted the specific scope permissions required to complete this request. Either the provided token is invalid or the request originates from an IP address disallowed from making the request. Some aspect of authentication cannot be validated. The method cannot be called from an Enterprise. The user does not have permission to view the channel.Īccess to a resource specified in the request is denied.Īuthentication token is for a deleted user or workspace when using a bot token.Īdministrators have suspended the ability to post a message. Callers should always check the value of the ok params in the response. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing. This table lists the expected errors that this method could return. The created_by property on each item is a string representing the encoded user id of the user who pinned the item. The created property on each item is a unix timestamp representing when the item was pinned. file_comment: the item will have a file property containing the file object and a comment property containing the file comment.file: this item will have a file property containing a file object.message: the item will have a message property containing a message object and a channel property containing the channel ID for the message.Every item in the list has a type property, and the other properties depend on the type of item. The response contains a list of pinned items in a channel.ĭifferent item types can be pinned. Stay tuned for updates as we bring a fuller feast of features to bots belonging to Slack apps. To use this method in a Slack app, use a user token imbued with the necessary scope. This method cannot be called with bot user tokens belonging to Slack apps, although legacy bot tokens will work. Bots belonging to Slack apps are not supported
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |