#I would like to know the amount of files in a channel.

1 messages · Page 1 of 1 (latest)

thorn elk
#

Actually, I dont want to do an API call to get ALL messages from the channel, and then sort them to keep only the files. It would be too long.

I just want to get a list of them (eg : message ID, name and weight for every attachment) like if I do a research "in:Channel contains:File" on discord as a user.

Even if i only get an amount of messages with attachment(s) instead of an amount of attachments, it doesn't really matter, but i want to get this information in a short time.

#

(ping me if you have an idea)

timber violet
#

you can only do that with history, bots cant do search like users do

thorn elk
timber violet
#

never use requests

#

Just use history, i dont see the problem

thorn elk
timber violet
thorn elk
#

...ok

#

thank you anyway \(〇_o)/