#Get number of messages in a channel?

1 messages · Page 1 of 1 (latest)

last seal
#

Is there anyway to get the number of messages in a discord channel?

I know that I could do something like this:

num = 0
async for message in channel.history(limit=None):
  num += 1

but that would take a really long time in a channel with a lot of messages. Any way to do it without making all those API calls?

torn karma
molten remnant
torn karma
molten remnant
#

you should more run the command one time and after that store the amount

torn karma
#

Isn‘t it formated like for example this:
[{message1…}, {message2…}]

molten remnant
#

Can you test it at a small amount of messages?

torn karma
molten remnant
#

oh

torn karma
#

I can test it later or the thread creator can do it