Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ayn2op/discordo
/ functions
Functions
309 in github.com/ayn2op/discordo
⨍
Functions
309
◇
Types & classes
89
↓ 45 callers
Function
desc
desc builds a Keybind with only a help description; keys come from config.toml.
internal/config/keybinds.go:35
↓ 24 callers
Function
newErrMsg
(err error)
internal/ui/login/qr/msg.go:25
↓ 15 callers
Method
SelectedChannel
()
internal/ui/chat/model.go:109
↓ 14 callers
Method
String
(i int)
internal/ui/chat/composer.go:601
↓ 13 callers
Method
SetCursor
SetCursor selects a message index and maps it to the corresponding row.
internal/ui/chat/messages_list.go:296
↓ 10 callers
Method
SetTitle
(title string)
internal/ui/chat/composer.go:151
↓ 10 callers
Method
selectedMessage
()
internal/ui/chat/messages_list.go:843
↓ 9 callers
Method
Get
(query string)
internal/cache/cache.go:25
↓ 8 callers
Method
listen
()
internal/ui/login/qr/msg.go:85
↓ 8 callers
Method
stopTabCompletion
()
internal/ui/chat/composer.go:747
↓ 7 callers
Method
Cursor
Cursor returns the selected message index, skipping separator rows.
internal/ui/chat/messages_list.go:281
↓ 7 callers
Function
Load
Load reads the configuration file and parses it.
internal/config/config.go:149
↓ 6 callers
Function
ConfigureBox
ConfigureBox configures the provided box according to the provided theme.
internal/ui/util.go:15
↓ 6 callers
Function
GetToken
()
internal/keyring/keyring.go:13
↓ 6 callers
Method
focusMessagesList
()
internal/ui/chat/model.go:203
↓ 6 callers
Method
forwardToTextArea
forwardToTextArea passes a key event to the embedded TextArea then resizes for the new content. SetChangedFunc isn't used: it fires inside replace's d
internal/ui/chat/composer.go:93
↓ 6 callers
Method
setNodeLineStyle
(node *tree.Node, style tcell.Style)
internal/ui/chat/guilds_tree.go:182
↓ 5 callers
Method
SetText
The following overrides wrap the embedded TextArea/Box methods to auto-resize when callers change text or chrome.
internal/ui/chat/composer.go:141
↓ 5 callers
Method
createChannelNode
(parent *tree.Node, channel discord.Channel)
internal/ui/chat/guilds_tree.go:156
↓ 5 callers
Method
drawAuthor
(builder *tview.LineBuilder, message discord.Message, baseStyle tcell.Style)
internal/ui/chat/messages_list.go:379
↓ 5 callers
Method
focusComposer
()
internal/ui/chat/model.go:196
↓ 5 callers
Method
invalidateRows
()
internal/ui/chat/messages_list.go:260
↓ 5 callers
Method
isMe
(id discord.UserID)
internal/ui/chat/model.go:121
↓ 5 callers
Method
itemCount
()
internal/ui/chat/mentions_list.go:79
↓ 5 callers
Method
resizeForContent
resizeForContent fits the input to its newline count, capped at Composer.MaxHeight and at the parent flex's height (leaving at least 1 row for the mes
internal/ui/chat/composer.go:101
↓ 4 callers
Function
Centered
Centered creates a new grid with provided primitive aligned in the center.
internal/ui/util.go:57
↓ 4 callers
Method
Create
(query string, value uint)
internal/cache/cache.go:16
↓ 4 callers
Function
DeleteToken
()
internal/keyring/keyring.go:21
↓ 4 callers
Method
Replace
(start, end int, text string)
internal/ui/chat/composer.go:146
↓ 4 callers
Method
close
()
internal/ui/login/qr/msg.go:51
↓ 4 callers
Function
defaultSelectionKeybinds
()
internal/config/keybinds.go:129
↓ 4 callers
Method
drawTimestamps
(builder *tview.LineBuilder, ts discord.Timestamp, baseStyle tcell.Style)
internal/ui/chat/messages_list.go:374
↓ 4 callers
Method
ensureRows
ensureRows lazily rebuilds list rows. This avoids repeated O(n) row rebuild work when multiple message mutations happen close together.
internal/ui/chat/messages_list.go:266
↓ 4 callers
Method
findNodeByReference
(reference any)
internal/ui/chat/guilds_tree.go:373
↓ 4 callers
Method
focusGuildsTree
()
internal/ui/chat/model.go:188
↓ 4 callers
Method
listen
()
internal/ui/chat/msg.go:33
↓ 4 callers
Method
openURL
(url string)
internal/ui/chat/messages_list.go:1235
↓ 3 callers
Function
CacheDir
()
internal/consts/consts.go:27
↓ 3 callers
Function
ChannelToString
(channel discord.Channel, icons config.Icons, state *ningen.State)
internal/ui/util.go:64
↓ 3 callers
Function
Headers
()
internal/http/headers.go:12
↓ 3 callers
Method
SetFooter
(footer string)
internal/ui/chat/composer.go:156
↓ 3 callers
Function
SetToken
(s string)
internal/keyring/keyring.go:17
↓ 3 callers
Method
buildLayout
()
internal/ui/root/model.go:68
↓ 3 callers
Method
canAttachFiles
()
internal/ui/chat/composer.go:808
↓ 3 callers
Function
channelHasUser
channelHasUser checks if a user has permission to view the specified channel.
internal/ui/chat/composer.go:610
↓ 3 callers
Method
closePicker
()
internal/ui/chat/model.go:169
↓ 3 callers
Method
createGuildNode
(parent *tree.Node, guild discord.Guild)
internal/ui/chat/guilds_tree.go:145
↓ 3 callers
Method
drawContent
drawContent renders the message body and returns the parsed markdown AST together with the source bytes it indexes into, so callers can reuse them ins
internal/ui/chat/messages_list.go:419
↓ 3 callers
Method
onSelected
(node *tree.Node)
internal/ui/chat/guilds_tree.go:239
↓ 3 callers
Method
removeMentionsList
()
internal/ui/chat/composer.go:740
↓ 3 callers
Method
reset
()
internal/ui/chat/composer.go:131
↓ 3 callers
Method
setFetchingChunk
(value bool, count uint)
internal/ui/chat/messages_list.go:1364
↓ 3 callers
Method
showChat
(token string)
internal/ui/root/model.go:62
↓ 3 callers
Method
unreadStyle
(indication ningen.UnreadIndication)
internal/ui/chat/guilds_tree.go:97
↓ 3 callers
Method
updateFooter
()
internal/ui/chat/model.go:418
↓ 3 callers
Method
waitForChunkEvent
()
internal/ui/chat/messages_list.go:1382
↓ 2 callers
Function
CommonProperties
()
internal/http/properties.go:22
↓ 2 callers
Function
ConfigurePicker
(model *picker.Model, cfg *config.Config, title string)
internal/ui/chat/util.go:13
↓ 2 callers
Function
DefaultPath
()
internal/config/config.go:138
↓ 2 callers
Method
Exists
(query string)
internal/cache/cache.go:20
↓ 2 callers
Method
Len
()
internal/ui/chat/composer.go:605
↓ 2 callers
Function
NewClient
(token string)
internal/http/client.go:11
↓ 2 callers
Method
Rect
()
internal/ui/root/model.go:146
↓ 2 callers
Method
SetItems
(items []attachmentItem)
internal/ui/chat/attachments_picker.go:31
↓ 2 callers
Function
SortPrivateChannels
(channels []discord.Channel)
internal/ui/util.go:120
↓ 2 callers
Method
Update
(msg tview.Msg)
internal/ui/root/model.go:83
↓ 2 callers
Method
activeKeyMap
()
internal/ui/chat/keybinds.go:28
↓ 2 callers
Method
activeKeyMap
()
internal/ui/root/keybinds.go:36
↓ 2 callers
Method
addMentionMember
(gID discord.GuildID, m *discord.Member)
internal/ui/chat/composer.go:683
↓ 2 callers
Method
addMentionUser
(user *discord.User)
internal/ui/chat/composer.go:719
↓ 2 callers
Method
append
(item mentionsListItem)
internal/ui/chat/mentions_list.go:45
↓ 2 callers
Function
applyDefaults
(cfg *Config)
internal/config/config.go:174
↓ 2 callers
Method
attach
(name string, reader io.Reader)
internal/ui/chat/composer.go:798
↓ 2 callers
Method
buildLayout
()
internal/ui/chat/model.go:126
↓ 2 callers
Method
canCollapseParent
(node *tree.Node)
internal/ui/chat/guilds_tree.go:485
↓ 2 callers
Method
channelItem
(guild *discord.Guild, channel discord.Channel)
internal/ui/chat/channels_picker.go:101
↓ 2 callers
Method
channelNodeStyle
(channel discord.Channel)
internal/ui/chat/guilds_tree.go:117
↓ 2 callers
Method
clear
()
internal/ui/chat/mentions_list.go:49
↓ 2 callers
Method
clearSelection
()
internal/ui/chat/messages_list.go:168
↓ 2 callers
Method
close
()
internal/ui/chat/attachments_picker.go:44
↓ 2 callers
Function
closeFiles
(files []sendpart.File)
internal/ui/chat/composer.go:287
↓ 2 callers
Method
closeState
()
internal/ui/chat/msg.go:21
↓ 2 callers
Method
deleteSelectedMessage
()
internal/ui/chat/messages_list.go:1303
↓ 2 callers
Method
dmStatusStyle
(status discord.Status)
internal/ui/chat/guilds_tree.go:132
↓ 2 callers
Method
drawDefaultMessage
(builder *tview.LineBuilder, message discord.Message, baseStyle tcell.Style)
internal/ui/chat/messages_list.go:482
↓ 2 callers
Method
expandMentions
(channel *discord.Channel, src []byte)
internal/ui/chat/composer.go:413
↓ 2 callers
Function
extractURLs
(content string)
internal/ui/chat/messages_list.go:1094
↓ 2 callers
Method
formatTimestamp
(ts discord.Timestamp)
internal/ui/chat/messages_list.go:370
↓ 2 callers
Function
getMessageIDFromChannel
(channel discord.Channel)
internal/ui/util.go:127
↓ 2 callers
Method
guildNodeStyle
(guildID discord.GuildID)
internal/ui/chat/guilds_tree.go:112
↓ 2 callers
Method
heartbeat
()
internal/ui/login/qr/msg.go:155
↓ 2 callers
Method
memberForMessage
(message discord.Message)
internal/ui/chat/messages_list.go:401
↓ 2 callers
Function
messageURLs
(msg discord.Message)
internal/ui/chat/messages_list.go:1139
↓ 2 callers
Method
openAttachment
(attachment discord.Attachment)
internal/ui/chat/messages_list.go:1193
↓ 2 callers
Method
parseAttr
(s string)
internal/config/theme.go:92
↓ 2 callers
Method
removeTyper
(userID discord.UserID)
internal/ui/chat/model.go:408
↓ 2 callers
Method
renderContentLinesWithMarkdown
(message discord.Message, baseStyle tcell.Style, forceMarkdown bool)
internal/ui/chat/messages_list.go:449
↓ 2 callers
Method
reply
(mention bool)
internal/ui/chat/messages_list.go:1244
↓ 2 callers
Method
requestGuildMembers
(guildID discord.GuildID, messages []discord.Message)
internal/ui/chat/messages_list.go:1330
↓ 2 callers
Method
searchMember
searchMember performs member discovery in a command goroutine. It emits a follow-up suggestion message once results are loaded.
internal/ui/chat/composer.go:621
next →
1–100 of 309, ranked by callers