Protection · Step
Attached files
The files on a message: how many, which are pictures or videos, their names and links, and whether any could run a program.
message.files
In a flow
“When a button is clicked, attached files.”
Message posted → Attached files → If Risky → Delete and warn.
What it does
The files on a message: how many, which are pictures or videos, their names and links, and whether any could run a program. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 6 values later steps can use. Find it under Protection in the palette.
When to use it
Use it to keep the server safe: the files on a message: how many, which are pictures or videos, their names and links, and whether any could run a program.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Message Message
-
Leave empty for the message that started the flow.
What goes there: Type it in the side panel, or wire in a message. e.g. a link to the message
If it's empty: Optional. Left empty and unwired, the step runs without it.
Connects fromCountdown messageCreate pollCreate poll from a listExport form recordsFind messageForward messagePinned messagesPoll with resultsand 527 more
Values it gives
- Files Number
-
How many files. e.g. 2
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more
- Pictures Number
-
How many are pictures. e.g. 1
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more
- Videos Number
-
How many are videos. e.g. 0
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more
- Names list:text
-
Each file's name. e.g. cat.png
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toCreate pollPoll with resultsAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsand 90 more
- Links list:text
-
Each file's address. e.g. https://cdn.discordapp.com/attachments/.../cat.png
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toCreate pollPoll with resultsAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsand 90 more
- Risky Yes / no
-
True when one could run a program, like .exe, .bat, .scr or .msi. e.g. false
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more