Furthermore, they only ask for the Commands scope. This integration will enable the /giphy slash command for your team. When searching for Gifs, they have a "cancel" button at the bottom that just removes the current command/message. Sus - GIF on Imgur Discover the magic of the internet at Imgur, a community powered. The purpose of this app is to provide Slack users with animated GIFs, videos and other visual aspects helping to enrich their chat. I know it can be done because the GIF Keyboard app for slack does this. I'm pretty sure #2 is the way to go and I feel I'm close and it's something pretty simple but out of my sight. When I try this however, it doesn't do anything, unless I provide some content. For example, /dnd 1 hour or /dnd until 5 p.m. I just want to override with nothing, basically removing the original response. /dnd description of time: Pause your notifications for a set period of time. When you reply to a user command on Slack it overrides by default the previous content. You will be shown a GIF that matches your search term. From the documentation Attaching content and links to messages. And you are able to modify that behavior when using the API method (but not in the response to a slash command). Slack has some special rules on when to unfurl links and when not. Find an adequate one using the shuffle option and when you’re happy with the preview, post the GIF to the channel. Showing the image instead of the URL is called unfurling in Slack. The thing is that I want to do it without having to request the chat:write:user scope or without having to create a bot.īy asking for the chat:write:user scope I can basically remove any message the user created, but it asks for that scope when installing the app and gives my app permission to post on behalf of the user, which most find uncomfortable.īy creating a bot I could achieve this, but again it asks for permission to add a bot to the channel and I don't want this. In the message area, type /giphy, followed by your search term, and click Enter. Choose a channel, type in the /giphy command, and the topic for your GIF. It usually responds with an interactive message that has some attachments and buttons.įor certain buttons, I return different types of texts or other attachments, but I also want to have a "Cancel" button that would basically cancel the current command - delete it from the user's chat. So I'm building a slack app in Node that responds to some user commands.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |