Hello there, I am trying to set up a workflow that will check for a new message with an attachment in a discord channel and then post that attachment and content to a new twitter post. I have it so it posts the content of the message but i cant get it to add the attachment with anything I try. Any help would be greatly appreciated.
To achieve this, you can use the Discord “New Message (Instant)” trigger and the Twitter “Send Tweet” action. Here’s a step-by-step guide:
Create a new workflow and add the Discord “New Message (Instant)” trigger. Connect your Discord account and follow the instructions on the trigger configuration screen.
Add a code step to extract the attachment URL from the Discord message. Here’s an example:
Add the Twitter “Send Tweet” action. Connect your Twitter account and set the “Status” field to the message content from the Discord trigger (use steps.trigger.event.content). In the “Media URLs” field, use the attachment URL extracted in the previous code step (use steps.<code_step_name>.return.attachmentUrl, replace <code_step_name> with the actual name of the code step).
Save and test your workflow.
Please note that this example assumes there’s only one attachment in the message. If there are multiple attachments, you may need to modify the code step accordingly.
Let me know if you need any further assistance!
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.
It looks like i need the media_id in order to be able to send a tweet with an image. I do not see a status field in which you are referencing in the create tweet event.
Anyone able to help with this? I am guessing i need some custom code in between the discord trigger and new tweet event.