common

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorBrand         = 0xfbea9a
	ColorPlayerPlaying = 0x00d010
	ColorPlayerLoading = 0x00800b
	ColorPlayerStopped = 0xd01c00
	ColorPlay          = 0x00d0d0
	ColorQueue         = 0x0080ff
	ColorAction        = 0xffb000
	ColorError         = 0xd00050
)
View Source
const (
	NPComponentPreviousID   = "np_component:previous"
	NPComponentNextID       = "np_component:next"
	NPComponentTogglePlayID = "np_component:toggle_play"

	QueueComponentPreviousID = "queue_component:previous"
	QueueComponentNextID     = "queue_component:next"

	CommonComponentToggleQueueID   = "common_component:toggle_queue"
	CommonComponentToggleLoopID    = "common_component:toggle_loop"
	CommonComponentToggleShuffleID = "common_component:toggle_shuffle"
)

Variables

View Source
var (
	InteractionResponseDifferentVC = &discordgo.InteractionResponse{
		Type: discordgo.InteractionResponseChannelMessageWithSource,
		Data: &discordgo.InteractionResponseData{
			Embeds: []*discordgo.MessageEmbed{
				{
					Description: "We have to be in the same voice channel!",
					Color:       ColorError,
				},
			},
		},
	}

	InteractionResponseInvalidPosition = &discordgo.InteractionResponse{
		Type: discordgo.InteractionResponseChannelMessageWithSource,
		Data: &discordgo.InteractionResponseData{
			Embeds: []*discordgo.MessageEmbed{
				{
					Description: "Invalid position!",
					Color:       ColorError,
				},
			},
		},
	}

	InteractionResponseNotPlaying = &discordgo.InteractionResponse{
		Type: discordgo.InteractionResponseChannelMessageWithSource,
		Data: &discordgo.InteractionResponseData{
			Embeds: []*discordgo.MessageEmbed{
				{
					Description: "I'm not playing anything right now!",
					Color:       ColorError,
				},
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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