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 vote

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) .

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

...able to use the clients After a bunch of testing (rooms, memberships, check for private message history, and most importantly - the custom emoticons!) nearly everything was looking as we needed, however...

439 views 2 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you