

When searching for Gifs, they have a "cancel" button at the bottom that just removes the current command/message.

giphy type of GIF you need Example /giphy yay. I know it can be done because the GIF Keyboard app for slack does this. To find a GIF, type the following in the input message field in any channel. 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. Here are some of the most useful slash (/) commands in Slack. I just want to override with nothing, basically removing the original response. to see all the commands you can use to join a channel, start a Zoom call, or find a GIF.
#SLACK GIF COMMAND HOW TO#
Read on to learn how to send GIFs in Slack. Once Giphy is installed to your workspace, any member can post GIFs in conversations from the attachments and shortcuts menu. You can also use blocks when creating Slack app based URL unfurls. chat.postMessage and chat.postEphemeral methods in the Web API. When you reply to a user command on Slack it overrides by default the previous content. The Giphy app lets you search a library of animated GIFs and send them in Slack. Heres a list of the methods you can use to publish messages with blocks: Incoming webhooks. 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.

Step 2: Navigate to This opens the Gfycat page in the Slack App Directory. 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. Go to or your team’s workspace URL in any web browser. For example, /dnd 1 hour or /dnd until 5 p.m. So I'm building a slack app in Node that responds to some user commands. /dnd description of time: Pause your notifications for a set period of time.
