MCPcopy Create free account

hub / github.com/ayn2op/discordo / functions

Functions309 in github.com/ayn2op/discordo

↓ 45 callersFunctiondesc
desc builds a Keybind with only a help description; keys come from config.toml.
internal/config/keybinds.go:35
↓ 24 callersFunctionnewErrMsg
(err error)
internal/ui/login/qr/msg.go:25
↓ 15 callersMethodSelectedChannel
()
internal/ui/chat/model.go:109
↓ 14 callersMethodString
(i int)
internal/ui/chat/composer.go:601
↓ 13 callersMethodSetCursor
SetCursor selects a message index and maps it to the corresponding row.
internal/ui/chat/messages_list.go:296
↓ 10 callersMethodSetTitle
(title string)
internal/ui/chat/composer.go:151
↓ 10 callersMethodselectedMessage
()
internal/ui/chat/messages_list.go:843
↓ 9 callersMethodGet
(query string)
internal/cache/cache.go:25
↓ 8 callersMethodlisten
()
internal/ui/login/qr/msg.go:85
↓ 8 callersMethodstopTabCompletion
()
internal/ui/chat/composer.go:747
↓ 7 callersMethodCursor
Cursor returns the selected message index, skipping separator rows.
internal/ui/chat/messages_list.go:281
↓ 7 callersFunctionLoad
Load reads the configuration file and parses it.
internal/config/config.go:149
↓ 6 callersFunctionConfigureBox
ConfigureBox configures the provided box according to the provided theme.
internal/ui/util.go:15
↓ 6 callersFunctionGetToken
()
internal/keyring/keyring.go:13
↓ 6 callersMethodfocusMessagesList
()
internal/ui/chat/model.go:203
↓ 6 callersMethodforwardToTextArea
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 callersMethodsetNodeLineStyle
(node *tree.Node, style tcell.Style)
internal/ui/chat/guilds_tree.go:182
↓ 5 callersMethodSetText
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 callersMethodcreateChannelNode
(parent *tree.Node, channel discord.Channel)
internal/ui/chat/guilds_tree.go:156
↓ 5 callersMethoddrawAuthor
(builder *tview.LineBuilder, message discord.Message, baseStyle tcell.Style)
internal/ui/chat/messages_list.go:379
↓ 5 callersMethodfocusComposer
()
internal/ui/chat/model.go:196
↓ 5 callersMethodinvalidateRows
()
internal/ui/chat/messages_list.go:260
↓ 5 callersMethodisMe
(id discord.UserID)
internal/ui/chat/model.go:121
↓ 5 callersMethoditemCount
()
internal/ui/chat/mentions_list.go:79
↓ 5 callersMethodresizeForContent
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 callersFunctionCentered
Centered creates a new grid with provided primitive aligned in the center.
internal/ui/util.go:57
↓ 4 callersMethodCreate
(query string, value uint)
internal/cache/cache.go:16
↓ 4 callersFunctionDeleteToken
()
internal/keyring/keyring.go:21
↓ 4 callersMethodReplace
(start, end int, text string)
internal/ui/chat/composer.go:146
↓ 4 callersMethodclose
()
internal/ui/login/qr/msg.go:51
↓ 4 callersFunctiondefaultSelectionKeybinds
()
internal/config/keybinds.go:129
↓ 4 callersMethoddrawTimestamps
(builder *tview.LineBuilder, ts discord.Timestamp, baseStyle tcell.Style)
internal/ui/chat/messages_list.go:374
↓ 4 callersMethodensureRows
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 callersMethodfindNodeByReference
(reference any)
internal/ui/chat/guilds_tree.go:373
↓ 4 callersMethodfocusGuildsTree
()
internal/ui/chat/model.go:188
↓ 4 callersMethodlisten
()
internal/ui/chat/msg.go:33
↓ 4 callersMethodopenURL
(url string)
internal/ui/chat/messages_list.go:1235
↓ 3 callersFunctionCacheDir
()
internal/consts/consts.go:27
↓ 3 callersFunctionChannelToString
(channel discord.Channel, icons config.Icons, state *ningen.State)
internal/ui/util.go:64
↓ 3 callersFunctionHeaders
()
internal/http/headers.go:12
↓ 3 callersMethodSetFooter
(footer string)
internal/ui/chat/composer.go:156
↓ 3 callersFunctionSetToken
(s string)
internal/keyring/keyring.go:17
↓ 3 callersMethodbuildLayout
()
internal/ui/root/model.go:68
↓ 3 callersMethodcanAttachFiles
()
internal/ui/chat/composer.go:808
↓ 3 callersFunctionchannelHasUser
channelHasUser checks if a user has permission to view the specified channel.
internal/ui/chat/composer.go:610
↓ 3 callersMethodclosePicker
()
internal/ui/chat/model.go:169
↓ 3 callersMethodcreateGuildNode
(parent *tree.Node, guild discord.Guild)
internal/ui/chat/guilds_tree.go:145
↓ 3 callersMethoddrawContent
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 callersMethodonSelected
(node *tree.Node)
internal/ui/chat/guilds_tree.go:239
↓ 3 callersMethodremoveMentionsList
()
internal/ui/chat/composer.go:740
↓ 3 callersMethodreset
()
internal/ui/chat/composer.go:131
↓ 3 callersMethodsetFetchingChunk
(value bool, count uint)
internal/ui/chat/messages_list.go:1364
↓ 3 callersMethodshowChat
(token string)
internal/ui/root/model.go:62
↓ 3 callersMethodunreadStyle
(indication ningen.UnreadIndication)
internal/ui/chat/guilds_tree.go:97
↓ 3 callersMethodupdateFooter
()
internal/ui/chat/model.go:418
↓ 3 callersMethodwaitForChunkEvent
()
internal/ui/chat/messages_list.go:1382
↓ 2 callersFunctionCommonProperties
()
internal/http/properties.go:22
↓ 2 callersFunctionConfigurePicker
(model *picker.Model, cfg *config.Config, title string)
internal/ui/chat/util.go:13
↓ 2 callersFunctionDefaultPath
()
internal/config/config.go:138
↓ 2 callersMethodExists
(query string)
internal/cache/cache.go:20
↓ 2 callersMethodLen
()
internal/ui/chat/composer.go:605
↓ 2 callersFunctionNewClient
(token string)
internal/http/client.go:11
↓ 2 callersMethodRect
()
internal/ui/root/model.go:146
↓ 2 callersMethodSetItems
(items []attachmentItem)
internal/ui/chat/attachments_picker.go:31
↓ 2 callersFunctionSortPrivateChannels
(channels []discord.Channel)
internal/ui/util.go:120
↓ 2 callersMethodUpdate
(msg tview.Msg)
internal/ui/root/model.go:83
↓ 2 callersMethodactiveKeyMap
()
internal/ui/chat/keybinds.go:28
↓ 2 callersMethodactiveKeyMap
()
internal/ui/root/keybinds.go:36
↓ 2 callersMethodaddMentionMember
(gID discord.GuildID, m *discord.Member)
internal/ui/chat/composer.go:683
↓ 2 callersMethodaddMentionUser
(user *discord.User)
internal/ui/chat/composer.go:719
↓ 2 callersMethodappend
(item mentionsListItem)
internal/ui/chat/mentions_list.go:45
↓ 2 callersFunctionapplyDefaults
(cfg *Config)
internal/config/config.go:174
↓ 2 callersMethodattach
(name string, reader io.Reader)
internal/ui/chat/composer.go:798
↓ 2 callersMethodbuildLayout
()
internal/ui/chat/model.go:126
↓ 2 callersMethodcanCollapseParent
(node *tree.Node)
internal/ui/chat/guilds_tree.go:485
↓ 2 callersMethodchannelItem
(guild *discord.Guild, channel discord.Channel)
internal/ui/chat/channels_picker.go:101
↓ 2 callersMethodchannelNodeStyle
(channel discord.Channel)
internal/ui/chat/guilds_tree.go:117
↓ 2 callersMethodclear
()
internal/ui/chat/mentions_list.go:49
↓ 2 callersMethodclearSelection
()
internal/ui/chat/messages_list.go:168
↓ 2 callersMethodclose
()
internal/ui/chat/attachments_picker.go:44
↓ 2 callersFunctioncloseFiles
(files []sendpart.File)
internal/ui/chat/composer.go:287
↓ 2 callersMethodcloseState
()
internal/ui/chat/msg.go:21
↓ 2 callersMethoddeleteSelectedMessage
()
internal/ui/chat/messages_list.go:1303
↓ 2 callersMethoddmStatusStyle
(status discord.Status)
internal/ui/chat/guilds_tree.go:132
↓ 2 callersMethoddrawDefaultMessage
(builder *tview.LineBuilder, message discord.Message, baseStyle tcell.Style)
internal/ui/chat/messages_list.go:482
↓ 2 callersMethodexpandMentions
(channel *discord.Channel, src []byte)
internal/ui/chat/composer.go:413
↓ 2 callersFunctionextractURLs
(content string)
internal/ui/chat/messages_list.go:1094
↓ 2 callersMethodformatTimestamp
(ts discord.Timestamp)
internal/ui/chat/messages_list.go:370
↓ 2 callersFunctiongetMessageIDFromChannel
(channel discord.Channel)
internal/ui/util.go:127
↓ 2 callersMethodguildNodeStyle
(guildID discord.GuildID)
internal/ui/chat/guilds_tree.go:112
↓ 2 callersMethodheartbeat
()
internal/ui/login/qr/msg.go:155
↓ 2 callersMethodmemberForMessage
(message discord.Message)
internal/ui/chat/messages_list.go:401
↓ 2 callersFunctionmessageURLs
(msg discord.Message)
internal/ui/chat/messages_list.go:1139
↓ 2 callersMethodopenAttachment
(attachment discord.Attachment)
internal/ui/chat/messages_list.go:1193
↓ 2 callersMethodparseAttr
(s string)
internal/config/theme.go:92
↓ 2 callersMethodremoveTyper
(userID discord.UserID)
internal/ui/chat/model.go:408
↓ 2 callersMethodrenderContentLinesWithMarkdown
(message discord.Message, baseStyle tcell.Style, forceMarkdown bool)
internal/ui/chat/messages_list.go:449
↓ 2 callersMethodreply
(mention bool)
internal/ui/chat/messages_list.go:1244
↓ 2 callersMethodrequestGuildMembers
(guildID discord.GuildID, messages []discord.Message)
internal/ui/chat/messages_list.go:1330
↓ 2 callersMethodsearchMember
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