Documentation ¶
Index ¶
- type Input
- type Message
- func (m *Message) HideError()
- func (m *Message) SetCondensed(condensed bool)
- func (m *Message) ShowError(err error)
- func (m *Message) UpdateAuthor(s *ningen.State, gID discord.GuildID, u discord.User)
- func (m *Message) UpdateAvatar(url string)
- func (m *Message) UpdateContent(s *ningen.State, update *discord.Message)
- func (m *Message) UpdateExtras(s *ningen.State, update *discord.Message)
- func (m *Message) UpdateMember(s *ningen.State, gID discord.GuildID, n discord.Member)
- type Messages
- func (m *Messages) ChannelID() discord.ChannelID
- func (m *Messages) Cleanup()
- func (m *Messages) Delete(ids ...discord.MessageID)
- func (m *Messages) Find(id discord.MessageID) *Message
- func (m *Messages) Focus()
- func (m *Messages) GuildID() discord.GuildID
- func (m *Messages) Insert(w *Message)
- func (m *Messages) LastFromMe() *Message
- func (m *Messages) Load(channelID discord.ChannelID)
- func (m *Messages) RecentAuthors(limit int) []discord.UserID
- func (m *Messages) ScrollToBottom()
- func (m *Messages) SetWidth(width int)
- func (m *Messages) Update(update *discord.Message) (*Message, bool)
- func (m *Messages) Upsert(message *discord.Message) *Message
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { *handy.Clamp Messages *Messages Main *gtk.Box Style *gtk.StyleContext Completer *completer.State InputBox *gtk.Box Input *gtk.TextView InputBuf *gtk.TextBuffer Upload *gtk.Button Emoji *gtk.Button Send *gtk.Button Bottom *gtk.Box Typing *typing.State // | Typing... | Editing. _Cancel_ | EditRevealer *gtk.Revealer EditLabel *gtk.Label EditCancel *gtk.Button Editing *discord.Message }
type Message ¶
type Message struct { *gtk.ListBoxRow Nonce string ID discord.MessageID AuthorID discord.UserID Author string Webhook bool Timestamp time.Time Edited time.Time Condensed bool CondenseOffset time.Duration OnUserClick func(m *Message) OnRightClick func(m *Message, btn *gdk.EventButton) // contains filtered or unexported fields }
func NewMessage ¶ added in v0.1.0
func NewMessageCustom ¶ added in v0.1.0
func (*Message) HideError ¶ added in v0.1.0
func (m *Message) HideError()
HideError hides a message's error, if any.
func (*Message) SetCondensed ¶ added in v0.1.0
func (*Message) UpdateAuthor ¶
func (*Message) UpdateAvatar ¶
func (*Message) UpdateContent ¶
func (*Message) UpdateExtras ¶
type Messages ¶
type Messages struct { *loadstatus.Page Opts Main *gtk.Box Column *handy.Clamp ScrolledBox *gtk.Box LoadMore *gtk.Button Messages *gtk.ListBox // Additional components Input *Input Scroll *gtk.ScrolledWindow Viewport *gtk.Viewport // contains filtered or unexported fields }
func NewMessages ¶
func (*Messages) LastFromMe ¶
func (*Messages) RecentAuthors ¶ added in v0.1.0
func (*Messages) ScrollToBottom ¶
func (m *Messages) ScrollToBottom()
type Opts ¶ added in v0.0.4
type Opts struct { MessageWidth int // InputZeroWidth sets whether or not the sent messages should be // "obfuscated" with zero-width space characters, which avoids telemetry // somewhat. InputZeroWidth bool // true // InputOnTyping sets whether or not gtkcord3 should send typing events to // the Discord server and announce it. InputOnTyping bool // true }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.