direct

package
v0.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	*gtk.ListBoxRow
	// contains filtered or unexported fields
}

Channel is an individual direct messaging channel.

func NewChannel

func NewChannel(ctx context.Context, id discord.ChannelID) *Channel

NewChannel creates a new Channel.

func (*Channel) Invalidate

func (ch *Channel) Invalidate()

Invalidate fetches the same channel from the state and updates itself.

func (*Channel) InvalidateSort

func (ch *Channel) InvalidateSort()

InvalidateSort invalidates the sorting position of this channel within the major channel list.

func (*Channel) LastMessageID

func (ch *Channel) LastMessageID() discord.MessageID

LastMessageID queries the local state for the channel's last message ID.

func (*Channel) Name

func (ch *Channel) Name() string

Name returns the current displaying name of the channel.

func (*Channel) Update

func (ch *Channel) Update(channel *discord.Channel)

Update updates the channel to show information from the instance given. ID is not checked.

type ChannelView

type ChannelView struct {
	*adaptive.LoadablePage
	// contains filtered or unexported fields
}

ChannelView displays a list of direct messaging channels.

func NewChannelView

func NewChannelView(ctx context.Context) *ChannelView

NewChannelView creates a new view.

func (*ChannelView) Invalidate

func (v *ChannelView) Invalidate()

Invalidate invalidates the whole channel view.

func (*ChannelView) SelectChannel

func (v *ChannelView) SelectChannel(chID discord.ChannelID)

SelectChannel selects a known channel. If none is known, then it is selected later when the list is changed or never selected if the user selects something else.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL