#Get number of messages in a channel?
1 messages · Page 1 of 1 (latest)
Their isn’t any other option but you can shorten the code by writing this:
num = len(await channel.history().flatten())
Maybe it’s faster than before
That is creating a list with the messages instead of every message
Models are classes that are received from Discord and are not meant to be created by the user of the library. Attributes key, url. Methods def is_animated, async read, def replace, async save, def ...
Wdym by that? I know that you have the same content like before but I think it‘s based on the message count a bit faster
Isn‘t it formated like for example this:
[{message1…}, {message2…}]
Can you test it at a small amount of messages?
I‘m not at my pc right now
oh
I can test it later or the thread creator can do it