I want to archive (save to local files) all the messages in a channel. To do this, I must iterate over all messages in a channel. ChatGTP suggested this code:
But alas, all is not actually a method that exists. The only contender I read on your documentation is get, but that requires a specific message id. The point is, I don't have a specific message, I just want to enumerate ALL of them. How can I do this?
How can I iterate all elements of a repository?
I want to archive (save to local files) all the messages in a channel. To do this, I must iterate over all messages in a channel. ChatGTP suggested this code:
But alas,
all
is not actually a method that exists. The only contender I read on your documentation isget
, but that requires a specific message id. The point is, I don't have a specific message, I just want to enumerate ALL of them. How can I do this?