rigormorrtiss
7f949d2143
Merge branch 'main' of https://github.com/rigormorrtiss/discordo
2021-08-25 22:53:16 +04:00
rigormorrtiss
1fb4f73249
Check if selected channel is not nil on enter key press while inputfield focused
2021-08-25 22:53:03 +04:00
rigormorrtiss
9a2bc80e8d
Sort guilds based on their respective position ( #36 )
...
* Sort guilds based on their respective position
* Update README preview
2021-08-24 23:24:51 +04:00
rigormorrtiss
83f2924186
Modify the default keybindings
2021-08-24 00:29:19 +04:00
rigormorrtiss
04b6ddc599
Hide non-permissible channels from channels TreeView ( #35 )
...
* Add discord.HasPermission()
* Exclude disallowed channels from TreeView
* Update README preview
2021-08-23 22:35:39 +04:00
rigormorrtiss
a3e9fbd076
Pointerize Config.Theme
2021-08-23 12:40:28 +04:00
rigormorrtiss
e1a88777a7
Change Config.Theme type to tview.Theme
2021-08-23 08:21:46 +04:00
rigormorrtiss
f8b8b5a144
Switch to discordgo
2021-08-22 19:29:37 +04:00
rigormorrtiss
89818721c3
feat(util): add mouse field to config ( #34 )
...
* feat(util): add mouse field to config
* docs(util): update doc comment
2021-08-19 19:31:54 +04:00
rigormorrtiss
85c7754a18
refactor(ui): remove NewApp()
2021-08-19 17:54:15 +04:00
rigormorrtiss
097b96f841
refactor: modularize into multiple functions to reduce complexity
2021-08-19 17:08:23 +04:00
rigormorrtiss
5f8d6f1399
Switch to TreeView from List for guilds
2021-08-19 15:45:08 +04:00
rigormorrtiss
affecac32c
main: display empty categories
2021-08-19 14:07:59 +04:00
rigormorrtiss
459167ab1e
main: sort channels with accordance to their levels
2021-08-19 13:36:24 +04:00
rigormorrtiss
a6984dd878
refactor: reuse writeMessages()
2021-08-18 22:27:31 +04:00
rigormorrtiss
4cf3fff3fe
ui: separate guilds from TreeView ( #33 )
...
* feat(ui): add NewGuildsList()
* fix(ui): remove redundant \n from guilds list
* feat(ui): add guilds List to main Flex
* refactor(ui): rename TreeView to channels TreeView
* feat: separate guilds from TreeView
* ui/flex: increase proportionate size of TreeView
* main: sort guild channels according to channel positions
* docs: update README preview
* main: add keybinding for guilds List
2021-08-18 21:33:41 +04:00
rigormorrtiss
c22a64cc5d
util: add theme.borders option to config ( #32 )
2021-08-18 21:02:21 +04:00
rigormorrtiss
4bf8085239
refactor(util): remove *{Background,Foreground} in favor of Background & Foreground
2021-08-18 19:48:32 +04:00
rigormorrtiss
d8c502440b
feat: switch to zalando/go-keyring from 99designs/keyring
2021-08-18 00:03:09 +04:00
rigormorrtiss
8d7b921df3
feat(main): prioritized support for DISCORDO_TOKEN env var ( #30 )
2021-08-17 23:25:58 +04:00
rigormorrtiss
5ff13fac2e
feat: add support for MFA (2FA) login ( #29 )
...
* feat(ui): add ui.NewMfaLoginForm()
* feat: add support for MFA
2021-08-17 19:03:55 +04:00
rigormorrtiss
7b0a824f5b
feat(main): suffix text channel topic to TextView title ( #27 )
2021-08-16 22:48:45 +04:00
rigormorrtiss
5fc681bde0
fix(main): degoroutinize addition of thread channel as children to text channel node
2021-08-16 18:38:56 +04:00
rigormorrtiss
d9fc27e5ed
feat(ui): set right border padding to 0 for TextView
2021-08-16 13:57:19 +04:00
rigormorrtiss
3b00d8b42c
fix(main): write messages in reverse order
2021-08-15 12:39:47 +04:00
rigormorrtiss
8ee54de596
feat: add support for voice channels
2021-08-15 12:37:07 +04:00
rigormorrtiss
3492639a1d
refactor(main): use shared session.Session.Context() for future calls
2021-08-15 11:35:31 +04:00
rigormorrtiss
1a2be50e14
feat: implement Threads ( #25 )
...
* main: refactor MESSAGe_CREATE event to separate function
* main: add thread channel as child to guild text channel
* main: write thread channel messages to messages TextView on select
* *: refactor to use for range loops
* main: write discord.Message.ReferencedMessage if message type is ThreadStarterMessage
* fix(util): write Message.Content if it is not an empty string
* refactor(util): remove WriteMessages
* refactor(main): defer-close websocket connection
* refactor(main): update api.UserAgent to latest
* refactor: use named return values
* fix: increase guilds TreeView fixedSize
* docs(README): update preview
2021-08-15 10:01:02 +04:00
rigormorrtiss
155f4d54f7
main: update arikawa to latest commit
2021-08-13 21:44:35 +04:00
rigormorrtiss
28964883ce
refactor: remove unnecessary named function parameters
2021-08-13 21:34:16 +04:00
rigormorrtiss
c9dd1fcf02
main: integrate user guilds in TreeView ( #24 )
...
* main: integrate user guilds in TreeView
* assets: update README preview
2021-08-11 22:59:31 +04:00
rigormorrtiss
45b6b92737
main: remove fmt.Println()
2021-08-11 19:04:03 +04:00
rigormorrtiss
1851c7ea53
main: change default keybindings
2021-08-11 17:59:56 +04:00
rigormorrtiss
27ae179fa3
main: goroutinize retrieval and rendering of channel messages
2021-08-10 23:23:32 +04:00
rigormorrtiss
ddbb051c84
main: remove unused variable
2021-08-10 23:00:44 +04:00
rigormorrtiss
71cc017f0e
main: remove "login via token" method
2021-08-10 22:44:21 +04:00
rigormorrtiss
044e48da2e
refactor: move event handlers to ui package
2021-08-10 22:34:37 +04:00
rigormorrtiss
b7355f2b49
main: set gateway.DefaultIdentity.Device to ""
2021-08-09 13:21:46 +04:00
rigormorrtiss
946e164564
Remove *Foreground configuration
2021-08-09 00:08:11 +04:00
rigormorrtiss
39234175a3
Degoroutinize (*api.Client).SendMessage()
2021-08-08 22:11:49 +04:00
rigormorrtiss
e78dfee9c8
Inline event handlers
2021-08-08 19:21:38 +04:00
rigormorrtiss
69f7ac594c
Goroutinize *session.Session.SendMessage()
2021-08-08 19:00:35 +04:00
rigormorrtiss
ca9eb30873
Revert "perf(main): set channelID as reference of node"
...
This reverts commit 0d6f5d19fe21e2ea4554056fe0f3e62c4ca17f7b.
2021-08-08 18:50:20 +04:00
rigormorrtiss
ae60aa8bd6
fix(main): clear messages TextView when channel of type GuildText or GuildNews is selected only ( #20 )
2021-08-08 18:37:02 +04:00
rigormorrtiss
bc73bc9ec8
perf(main): set channelID as reference of node
2021-08-08 18:31:41 +04:00
rigormorrtiss
775e658e7d
Add message InputField if channel type is GuildText or GuildNews
2021-08-07 23:13:50 +04:00
rigormorrtiss
8d529e5f02
fix(main): set messages TextView title as channel name
2021-08-07 18:42:24 +04:00
rigormorrtiss
1902f5908d
fix(main): compare CategoryID against 0 and discord.NullChannelID for 'global channels'
2021-08-07 18:40:02 +04:00
rigormorrtiss
51d19f57b7
fix(main): compare channel.CategoryID with discord.NullChannelID
2021-08-07 17:52:07 +04:00
rigormorrtiss
51b5cd1834
refactor: rename variables to comply with 'effective go'
2021-08-07 14:53:38 +04:00