discordgo

package
v0.0.0-...-b6b6a87 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(session *discordgo.Session) *Client

func (*Client) CreateChannel

func (c *Client) CreateChannel(guildID string, name string, channelType discord.ChannelType, maxUsers int) (discord.Channel, error)

func (*Client) EditInteraction

func (c *Client) EditInteraction(token string, message string) error

func (*Client) EditInteractionComplex

func (c *Client) EditInteractionComplex(token string, edit discord.ComplexInteractionEdit) error

func (*Client) EstablishVoiceConnection

func (c *Client) EstablishVoiceConnection(guildID, channelID string, mute, deaf bool, done chan bool) (voice *discord.VoiceConnection, err error)

func (*Client) GetBotUsername

func (c *Client) GetBotUsername() string

func (*Client) GetChannel

func (c *Client) GetChannel(channelID string) (discord.Channel, error)

func (*Client) GetGuildChannels

func (c *Client) GetGuildChannels(guildID string) ([]discord.Channel, error)

func (*Client) GetGuildUsers

func (c *Client) GetGuildUsers(guildID string) ([]discord.User, error)

func (*Client) GetGuilds

func (c *Client) GetGuilds() ([]discord.Guild, error)

func (*Client) GetUser

func (c *Client) GetUser(userID string) (discord.User, error)

func (*Client) SendFileMessage

func (c *Client) SendFileMessage(channelID string, name, contentType string, readable io.Reader) (discord.Message, error)

func (*Client) SendTextMessage

func (c *Client) SendTextMessage(channelID string, message string) error

func (*Client) SetEmbed

func (c *Client) SetEmbed(channelID string, messageID string, embed discord.MessageEmbed) error

Jump to

Keyboard shortcuts

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