tools

package
v0.0.0-...-0b8d19b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Epoch uint64 = 1420070400000

Variables

This section is empty.

Functions

func AwaitInteraction

func AwaitInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)

func ConvertToTime

func ConvertToTime(flake string) time.Time

func NewEmbed

func NewEmbed(member *discordgo.Member, author string) discordgo.MessageEmbed

func NewErrorEmbed

func NewErrorEmbed(member *discordgo.Member, description string) discordgo.MessageEmbed

func NewSelectMenu

func NewSelectMenu(id string, placeholder string, options []discordgo.SelectMenuOption) discordgo.ActionsRow

func RegisterCommands

func RegisterCommands(s *discordgo.Session, GuildId string)

func Respond

func Respond(s *discordgo.Session, i *discordgo.InteractionCreate, content string)

func ResponseEdit

func ResponseEdit(s *discordgo.Session, i *discordgo.InteractionCreate, messageData *MessageData)

func SendError

func SendError(s *discordgo.Session, i *discordgo.InteractionCreate, description string)

Types

type MessageData

type MessageData struct {
	Content    string
	Embed      *discordgo.MessageEmbed
	Embeds     *[]*discordgo.MessageEmbed
	Components *[]discordgo.MessageComponent
	Files      []*discordgo.File
}

Jump to

Keyboard shortcuts

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