refactor(cmd): chain calls
This commit is contained in:
parent
6aee4a08e3
commit
1dfe7ca17b
1 changed files with 1 additions and 2 deletions
|
|
@ -79,8 +79,7 @@ func onReady(r *gateway.ReadyEvent) {
|
|||
root := app.guildsTree.GetRoot()
|
||||
root.ClearChildren()
|
||||
|
||||
dmNode := tview.NewTreeNode("Direct Messages")
|
||||
dmNode.SetColor(tcell.GetColor(app.cfg.Theme.GuildsTree.PrivateChannelColor))
|
||||
dmNode := tview.NewTreeNode("Direct Messages").SetColor(tcell.GetColor(app.cfg.Theme.GuildsTree.PrivateChannelColor))
|
||||
root.AddChild(dmNode)
|
||||
|
||||
for _, folder := range r.UserSettings.GuildFolders {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue