Hey @user967! Are you using a third-party Discord<>Intercom integration, or are you building your own?
If the former, you'd need to contact the third party who designed it with your query, as we wouldn't know or manage how it works.
If the latter, you'd need to add this extra restriction as a custom implementation in your own server. If you're using our REST API so that Discord messages > Intercom, you'll need to do restrictions on your server in the middle step of data flow from Discord > your server > Intercom.
If you're somehow using Canvas Kit to build this integration between Discord and Intercom, we'd need more info on how you're doing this before we can advise.
Thanks for the response, we're developing our own. We can limit the API to only handle text, however, we'd like to limit the intercom message composer to text (no articles, apps, etc.)
If you've limited the API to only handle text, this should also be reflected in the composer. Is this not the case in your testing?
Do you mind going into a bit more detail regarding that statement? Our current (planned) architecture is Intercom webhook (conversation.admin.replied/opened/closed) -> our servers -> Discord and Discord -> our servers -> Intercom REST API. The webhook (as far as we can tell) provides no option/s to limit the type of message sent.
Hey @user967, apologies for the delay in my response, I'm trying to get the information you need from our Support engineers who look after app development questions (it wouldn't be my own speciality!)
The thing is, if you're leveraging our own API in some way, the only available message types are in-app or email. For in-app messages, these are designed to create a message that will then be sent/appear via the Messenger.
If Intercom messages and conversations are created by our API, they look to always have ability to insert articles, macros, GIFs, attachments, image and emoji options (but not apps).
If you still wanted to restrict those different types of content, you'll need to handle them in a middle step between the reply being sent from Intercom > Discord.
e.g. if someone sends a GIF in an Intercom reply, this triggers the Intercom webhook with the reply data to your server. You would need to cut out this GIF content in your server before sending to Discord.
Essentially, you wouldn't be able to stop teammates/users from inserting these in their replies, but you would be able to remove the content from the message, on your own server, before it's sent to Discord.