Commit graph

26 commits

Author SHA1 Message Date
ayntgl
834d7342af refactor: move util/{discord,ui} to main pkg 2021-11-25 16:35:38 +04:00
ayntgl
30dffbaa83
refactor: move UI components to ui package (#93) 2021-10-30 18:35:50 +04:00
ayntgl
0dbc7d3fd5
fix: do not scroll to end if any message is selected (#90) 2021-10-29 16:00:39 +04:00
ayntgl
2be06ef4cd
feat: lazy-load channels on guild select (#89)
* feat: set channels tree title to 'Channels'

* feat: lazy-load channels on guild select
2021-10-29 15:26:01 +04:00
ayntgl
207a4d43bd refactor: move utility functions into separate package 2021-10-29 12:53:40 +04:00
ayntgl
cfee278be8
fix: scroll to end of text on channel select (#85) 2021-10-28 17:10:48 +04:00
ayntgl
508a4249e6
feat: render message type CALL (3) & GUILD_MEMBER_JOIN (7) (#78) 2021-10-17 13:25:02 +04:00
ayntgl
ceae56bca3 refactor: move isUnread to util.go 2021-10-17 13:02:19 +04:00
ayntgl
f486f54f1c refactor: modularize func to reduce cyclomatic complexity 2021-10-16 18:50:57 +04:00
ayntgl
2d95068ded
Fix embed fields and footer parsing (#77) 2021-10-16 16:31:05 +04:00
ayntgl
62215312f0 Refactor 2021-10-16 13:57:16 +04:00
ayntgl
8ea53c88a5 Relocate global variable declarations 2021-10-15 23:36:00 +04:00
ayntgl
2400226ee1
Store selected message index (+1) instead of *discordgo.Message struct (#71)
* Store selected message index (+1) instead of *discordgo.Message struct

* Fix typo; Repling -> Replying
2021-10-15 22:26:48 +04:00
ayntgl
d52e488cf4 discord: parse markdown in embed description and field values 2021-10-13 14:14:22 +04:00
ayntgl
7212644748 discord: distinguish between inline and non-inline embed fields 2021-10-13 13:00:31 +04:00
ayntgl
a8e5998734 discord: improve message embed rendering 2021-10-13 12:53:49 +04:00
ayntgl
813188198d
feat: render message embeds (#70)
Closes #69
2021-10-11 16:07:18 +04:00
ayntgl
083eda48bf refactor: move renderer functionality to discord.go 2021-10-10 16:56:22 +04:00
ayntgl
14f93ee1c0
feat: mark unread channels (#65)
* feat: distinguish unread messages, channels, and guilds

* feat: add UI acknowledgement functionality

* fix: return if tree node by reference not found

* feat: mark pre-unread messages with bold tag
2021-10-01 22:25:11 +04:00
ayntgl
85438d0799
refactor: preload (append to guild TreeNode) channels upon receiving READY event (#64) 2021-09-29 12:28:49 +04:00
ayntgl
88674c5f4d refactor: rename mainTreeView to channelsTree 2021-09-27 11:29:00 +04:00
ayntgl
cbfd15ade8 feat: add DM channels functionality (#58)
* feat: add DM channels functionality

* fix: remove main TreeView title
2021-09-25 12:52:15 +04:00
ayntgl
f84c232aab Move global variables declaration to pertinent file 2021-09-24 19:16:21 +04:00
ayntgl
e43a631950 Directly use *discordgo.Session from global state 2021-09-23 21:57:53 +04:00
ayntgl
8dad4deec0 Implement inline reply mention functionality (#50) 2021-09-20 11:27:31 +04:00
ayntgl
f945fbf4f8 Switch to a flat project structure (#48) 2021-09-19 19:56:51 +04:00