# Getting attachments from slash command message

**URL:** <https://forum.mattermost.com/t/getting-attachments-from-slash-command-message/9482>\
**Category:** Troubleshooting\
**Created:** [April 14, 2020, 2:18pm UTC](https://forum.mattermost.com/t/getting-attachments-from-slash-command-message/9482 "2020-04-14T14:18:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moussetc](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@moussetc](https://forum.mattermost.com/u/moussetc)\
**Post date:** [April 14, 2020, 2:18pm UTC](https://forum.mattermost.com/t/getting-attachments-from-slash-command-message/9482/1 "2020-04-14T14:18:59Z")

</div>

Hi,

I’m writing a plugin that defines a slash command, and I need to access the attachments of the slash command message. In the CommandArgs parameter of the `ExecuteCommand` hook, there are both `RootId` and `ParentId` properties, both of which are not the `PostId` or `FileIds` I need.

Is there a way to get to the command message’s attachments?

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [April 15, 2020, 1:24pm UTC](https://forum.mattermost.com/t/getting-attachments-from-slash-command-message/9482/2 "2020-04-15T13:24:30Z")

</div>

Would you be open to asking about this on our [community server’s Developers channel](https://community.mattermost.com/core/channels/developers)? Someone from our community will probably know.

---

<div class="post-metadata">

**Author:** ![moussetc](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@moussetc](https://forum.mattermost.com/u/moussetc)\
**Post date:** [April 15, 2020, 1:44pm UTC](https://forum.mattermost.com/t/getting-attachments-from-slash-command-message/9482/3 "2020-04-15T13:44:48Z")

</div>

I just did, thank you. I had previously asked on ~Toolkit, with no avail but I’ll admit I’m a bit lost about which channel to use when asking for help relating to plugins (I usually go for Toolkit or Peer to Peer help).
