Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { ID string Name string Type ChannelType }
type ChannelType ¶
type ChannelType int
const ( ChannelTypeGuildText ChannelType = 0 ChannelTypeGuildVoice ChannelType = 2 )
type Client ¶
type Client interface { GetGuilds() ([]Guild, error) GetGuildUsers(guildID string) ([]User, error) GetUser(userID string) (User, error) GetBotUsername() string GetGuildChannels(guildID string) ([]Channel, error) GetChannel(channelID string) (Channel, error) CreateChannel(guildID string, name string, channelType ChannelType, maxUsers int) (Channel, error) SendTextMessage(channelID string, message string) error SendFileMessage(channelID string, name, contentType string, readable io.Reader) (Message, error) SetEmbed(channelID string, messageID string, embed MessageEmbed) error EstablishVoiceConnection(guildID, channelID string, mute, deaf bool, done chan bool) (voice *VoiceConnection, err error) EditInteraction(token string, message string) error EditInteractionComplex(token string, edit ComplexInteractionEdit) error }
type ComplexInteractionEdit ¶
type ComplexInteractionEdit struct { Content string Embeds []*MessageEmbed }
type MessageEmbed ¶
type MessageEmbed struct { URL string Title string Description string Timestamp string Color int Thumbnail string Fields []*MessageEmbedField Author *MessageEmbedAuthor }
type MessageEmbedAuthor ¶
type MessageEmbedField ¶
type VoiceConnection ¶
func NewVoiceConnection ¶
func NewVoiceConnection(internals any, voice chan *Packet) *VoiceConnection
Click to show internal directories.
Click to hide internal directories.