#(Zemen) Is there a way to check if message is a link or an attached file? (Ddiscord)

19 messages · Page 1 of 1 (latest)

crimson nymph
#

So I want to not message the person if his message contains:
A) Any links
B) File or image attached

languid bearBOT
#

(Zemen) Is there a way to check if message is a link or an attached file? (Ddiscord)

languid bearBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

crimson nymph
#

after discord message received channel:channel_id: - I'm using this, so probably I need to use something like - if <context.new_message.contains_...>

#

And contains what?

#

how do I check if message contains a link or an image?

#

or any other file

fierce oak
#

!t discordmessagetag.attach

austere pewterBOT
fierce oak
#

this could help?

crimson nymph
#

Oh sorry, I already figured it all out

#

but thanks anyway