ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.02k stars 63 forks source link

Fetch more messages by scrolling #308

Open emanueljg opened 1 year ago

emanueljg commented 1 year ago

Currently when selecting a channel and scrolling through its history, there is no way of fetching messages beyond the messages_limit messages loaded in at the time of selection. A way of querying for older messages, either implicitly by trying to scroll or an explicit keypress to trigger it would be nice. The discord API does allow message fetching with an offset so those are some good news.

A temporary fix for now is obviously to just increase the messages limit, but this of course is suboptimal when you really only want to preview few messages as you're now stuck with slower channel loading times with no real benefit.

craftxbox commented 1 year ago

It's worth nothing: I have heard talk that discord uses /messages with offset for detecting illegal API usage. It may be worth testing the safety of using it in our case here.

emanueljg commented 1 year ago

It's worth nothing: I have heard talk that discord uses /messages with offset for detecting illegal API usage. It may be worth testing the safety of using it in our case here.

Thank you for this info. Do you know if discord bans people account-wise or IP-wise? If the former then people that likes to live on the edge could try it out first. We could make the feature toggleable.

craftxbox commented 1 year ago

It's worth nothing: I have heard talk that discord uses /messages with offset for detecting illegal API usage. It may be worth testing the safety of using it in our case here.

Thank you for this info. Do you know if discord bans people account-wise or IP-wise? If the former then people that likes to live on the edge could try it out first. We could make the feature toggleable.

I'm not certain. I know server bans are executed by account and IP but I'm unaware about the specifics of platform bans. As long as you haven't been doing anything malicious, TNS usually grants amnesty for an API-abuse ban, but the issue is getting ahold of them before the account autodeletes.

ghost commented 1 year ago

For testing, use an alt account and a VPN so you could hide your IP.