You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you create your own slash command? How do you get the slash command to do more than just open a new tab which is what is shown in the example given in the documentation here.
I would like to create a /google command that would search the web with google and get the url and title of the search result the user selected and insert it into the textarea.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for the feedback. I will work to improve the documentation with a more full-fledged example. In the meantime, here are some good places to start:
Check out the implementation for the /giphy command here. Probably the biggest thing to see there is how we use the Container component (source here) to contain the search. This adds in all of the default UI you see in /giphy, /spotify, /emoji.
Check out the Search component here. For the simplest implementation, you can use the Search.Widget component, which requires the props specified here. If you'd like to do something a little more involved, you can look to Emoji uses Search.Input and then does a custom rendering.
If you'd like to dive in, I can make myself available here to answer any questions you have getting set up!
jessepollak
changed the title
How to create your own slash command
Update CONTRIBUTING.md to provide a more involved example of creating a command
Apr 8, 2016
How do you create your own slash command? How do you get the slash command to do more than just open a new tab which is what is shown in the example given in the documentation here.
I would like to create a
/google
command that would search the web with google and get the url and title of the search result the user selected and insert it into the textarea.The text was updated successfully, but these errors were encountered: