ayn2op / discordo

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

Feat: Add User List #364

Closed cyberme0w closed 5 months ago

cyberme0w commented 6 months ago

Hi!

This PR revolves around adding a new UI element containing a list of members of the current channel, along with a drop-down menu with commands when selecting a user.

The UserList is built similarly to the GuildsTree. Each user is a node with a UserID reference while commands are children (with the UserID referenced as a string, to be able to distinguish between a user and a command).

This opens up the possibility to add more user-related commands in the future. Currently, I have only implemented appending a mention to the current message based on the highlighted user.

I would like to keep this as a draft for now, as I'm still working out some issues here and there, but would like to know what you think / if you have any suggestions.

Preview: file

Cheers!

Closes #129

cyberme0w commented 6 months ago

This would also close #129

cyberme0w commented 5 months ago

Closing, as I will no longer be working on this PR.