I'm trying to make a Zap that will respond when an image is posted in the channel.
I tried doing this by using filter by zapier; Attachments - (text) contains - .jpg Also tried Content instead of attachment as first field. Ideally, I'd want it to respond only if it's an image posted by a specific user, but I figured I should first make this work.
Best answer by SamB
Hey @Artnerd, welcome to the Community!
You’re totally on the right track with using a Filter step here. With attachments in Discord there should be a Content Type field that would contain details about the file type. For JPG images I believe those would come through as “image/jpeg”. So you could try changing the Filter to check that the Content Type field contains image/jpeg.
And in order to check whether it was posted by a specific user you’d add an AND condition to the Filter which checks that the author username is a match for the username of the desired user. This should ensure that the Zap will only continue if a JPG image was posted by a specific user.
Hope this helps. Please do let us know if that does the trick! :)
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.
You’re totally on the right track with using a Filter step here. With attachments in Discord there should be a Content Type field that would contain details about the file type. For JPG images I believe those would come through as “image/jpeg”. So you could try changing the Filter to check that the Content Type field contains image/jpeg.
And in order to check whether it was posted by a specific user you’d add an AND condition to the Filter which checks that the author username is a match for the username of the desired user. This should ensure that the Zap will only continue if a JPG image was posted by a specific user.
Hope this helps. Please do let us know if that does the trick! :)