How Do You Get A List Of All Messages For A Channel?

I have a channel ID. How do I get a list of all messages for this channel? Looking for something akin to:

sendbirdInstance.getChannelMessages(channelId, (messages) => {
    console.log(messages);
});

Hey @diggtydo,

You’re looking for PreviousMessageListQuery. It allows you to retrieve the previous messages in the channel. Note: There is a 100 message limit per call, with a recommended limit of 30.