util

package
v0.0.0-...-1e1872e Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BotInviteURL

func BotInviteURL() string

func DiscordAvatarURL

func DiscordAvatarURL(id string, discriminator string, avatar string) string

func ExecuteGuildedWebhook

func ExecuteGuildedWebhook(webhookID, webhookToken string, params *discordgo.WebhookParams) error

func GetFileExtensionFromMimeType

func GetFileExtensionFromMimeType(mimeType string) string

func HashBytes

func HashBytes(b []byte) string

func IsDiscordRestErrorCode

func IsDiscordRestErrorCode(err error, codes ...int) bool

func Ptr

func Ptr[T any](val T) *T

func UniqueID

func UniqueID() string

Types

type VaultBinPaste

type VaultBinPaste struct {
	ID string
}

func CreateVaultBinPaste

func CreateVaultBinPaste(content string, language string) (*VaultBinPaste, error)

func (*VaultBinPaste) URL

func (v *VaultBinPaste) URL() string

Jump to

Keyboard shortcuts

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