It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can my custom slash command replace the original message?

I am trying to write a slash command which suggests a synonym based on the word supplied. For example:

/word awesome! -> zerocool!

 I have discovered that you can send back an s/ command, however, I don't think I can escape the /word aspect of it. So is there a way through the API that I can achieve the goal of replacing the slash command with my result message? Either that or not allowing the original slash command to show up in the room chat?


Thanks for your help! I've looked around but haven't been able to find any documentation on this particular thing.

1 answer

0 votes
Anatoli Atlassian Team Jun 29, 2016

Hi Josh, unfortunately it is not possible.  We do not allow changing of existing messages trough API. The only way to do it is to manually type s/ command . Add-on sending a "s/" message would not work (we explicitly restrict messages sent from addons to execute any commands) .

Deleted user Jun 08, 2018

Is this still the case? I'm trying to write a syntax-highlighter api that would return html with the code highlighted given the language selected: /syntax ruby puts "hello world!"

Right now, if everything is the same, I would end up with the user sending a message and then SyntaxHiliter responding with the html (or err message). 

Ideally, I would love to see /code expanded 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Hipchat

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

35,200 views 9 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you