Why are the slash commands in my discord bot being received as normal text instead of slash commands?

This topic was automatically generated from Slack. You can find the original thread here.

:wave: I am trying to send slash commands in discord using the discord bot I created however, the channel isn’t receiving them as slash commands, it’s just receiving as normal text. Please help. Thank you

Here are the exports:

steps.send_message
{2}
$summary:
Message has been sent successfully

$return_value
{16}
type:
0

content
/imagine: An Italian male business owner named Paul Ferrante stands in a modern office setting with a sleek design, holding a tablet that displays a chart showing consistent growth in leads. He has a broad smile, exuding joy and satisfaction. The background features a bright, organized workspace with motivational quotes on the walls, illustrating his success in attracting 30 qualified leads per month.

Sent via [[pipedream.com/@/p_ljC17bv?o=a&a=discord_webhook](](http://pipedream.com/@/p_ljC17bv?o=a&a=discord_webhook]()<https://pipedream.com/@/p_ljC17bv?o=a&a=discord_webhook>)

mentions
[0]

mention_roles
[0]

attachments
[0]

embeds
[0]
timestamp:
2024-08-01T02:39:33.722000+00:00
edited_timestamp:
null
flags:
0

components
[0]
id:
1268397684700741737
channel_id:
1094015887553593396

author
{13}
id:
1268379267847163987
username:
MJ Helper
avatar:
546a2bdf967044672450c6e1d52d6f02
discriminator:
3197
public_flags:
0
flags:
0
bot:
true
banner:
null
accent_color:
null
global_name:
null
avatar_decoration_data:
null
banner_color:
null
clan:
null
pinned:
false
mention_everyone:
false

Hi , from my understanding, you want to send a slash command to a discord bot from Pipedream discord action right?

If this is the case, the answer is you can not send Slash Command using Pipedream Discord Send Message action.

The reason is Pipedream Discord Send Message action uses Discord Create Message API. And Discord Create Message API doesn’t allow you to customize Message Type.

Also there’s no other Discord public APIs that allow you to send slash command interactions.

Are there any API’s that can interact through pipedream for MidJourney?