-
Hi. What I want to build is channel reader. Where I can get all the message from a channel. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think you could read messages on behalf of a user but I think that's a mild security concern ( You can get messages by requesting channels/:id/messages with a limit of 100 via rest (i.e. rest.get(api route, opts)), or in d.js by just executing channel.messages.fetch |
Beta Was this translation helpful? Give feedback.
I think you could read messages on behalf of a user but I think that's a mild security concern (
afaik that'd allow the app to read messages anywhere, I wouldn't auth thatonly happens with local rpc server access). I'm not sure what exactly a "channel reader" will do because you can just read the channel in the app but it does seem like you might want a bot.You can get messages by requesting channels/:id/messages with a limit of 100 via rest (i.e. rest.get(api route, opts)), or in d.js by just executing channel.messages.fetch