Documentation ¶
Index ¶
- Constants
- func ActionRowComps(buttonLabels, buttonsIDs []string) *[]discordgo.MessageComponent
- func CreatePionRTPPacket(p *discordgo.Packet) *rtp.Packet
- func FormatSeconds(seconds uint32) string
- func QueueButtonsCustomIDs() []string
- func VoiceChannel(g *discordgo.Guild, authorID string) (string, bool)
- type InteractionContext
- func (ic *InteractionContext) ButtonInteractionAnswer(message string, buttonLabels, buttonsIDs []string) error
- func (ic *InteractionContext) DefaulInteractionAnswer(message string) error
- func (ic *InteractionContext) DeferAnswer() error
- func (ic *InteractionContext) GeneralInteractionAnswer(data *discordgo.InteractionResponseData) error
- func (ic *InteractionContext) GetResponse() (*discordgo.Message, error)
- func (ic *InteractionContext) NoAnswer() error
- func (ic *InteractionContext) UpdateAnswer(message string) error
- func (ic *InteractionContext) UpdateAnswerComplex(messageEdit *discordgo.WebhookEdit) error
- func (ic *InteractionContext) UpdateMessageComplex(messageEdit *discordgo.MessageEdit) error
- type PlayInfo
- type SoundPlayer
Constants ¶
View Source
const QUEUE_BACKWARDS_CID = "queue_backwards"
View Source
const QUEUE_FORWARDS_CID = "queue_forwards"
View Source
const QUEUE_PAUSE_CID = "queue_pause"
View Source
const QUEUE_RESUME_CID = "queue_resume"
View Source
const QUEUE_SKIPTO_CID = "queue_skipto"
View Source
const QUEUE_SKIPTO_MODAL_CID = "queue_skipto_modal"
View Source
const QUEUE_SKIPTO_MODAL_TEXT_CID = "queue_skipto_modal_text"
View Source
const QUEUE_SKIP_CID = "queue_skip"
View Source
const QUEUE_STOP_CID = "queue_stop"
Variables ¶
This section is empty.
Functions ¶
func ActionRowComps ¶
func ActionRowComps(buttonLabels, buttonsIDs []string) *[]discordgo.MessageComponent
func FormatSeconds ¶
func QueueButtonsCustomIDs ¶
func QueueButtonsCustomIDs() []string
Types ¶
type InteractionContext ¶
type InteractionContext struct { Session *discordgo.Session Interaction *discordgo.InteractionCreate }
func (*InteractionContext) ButtonInteractionAnswer ¶
func (ic *InteractionContext) ButtonInteractionAnswer(message string, buttonLabels, buttonsIDs []string) error
use this function if you need some simple buttons in your answer there can be only 5 buttons in a row, this function takes care of this and adds new rows if needed
func (*InteractionContext) DefaulInteractionAnswer ¶
func (ic *InteractionContext) DefaulInteractionAnswer(message string) error
func (*InteractionContext) DeferAnswer ¶
func (ic *InteractionContext) DeferAnswer() error
send this if your real answer to the interaction can potentially time out (3s)
func (*InteractionContext) GeneralInteractionAnswer ¶
func (ic *InteractionContext) GeneralInteractionAnswer(data *discordgo.InteractionResponseData) error
func (*InteractionContext) GetResponse ¶
func (ic *InteractionContext) GetResponse() (*discordgo.Message, error)
func (*InteractionContext) NoAnswer ¶
func (ic *InteractionContext) NoAnswer() error
func (*InteractionContext) UpdateAnswer ¶
func (ic *InteractionContext) UpdateAnswer(message string) error
if you deferred your answer before use this to update your answer
func (*InteractionContext) UpdateAnswerComplex ¶
func (ic *InteractionContext) UpdateAnswerComplex(messageEdit *discordgo.WebhookEdit) error
func (*InteractionContext) UpdateMessageComplex ¶
func (ic *InteractionContext) UpdateMessageComplex(messageEdit *discordgo.MessageEdit) error
Click to show internal directories.
Click to hide internal directories.