utils

package
v0.0.0-...-3dc37b2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion(currentVersion string)

func Clear

func Clear()

Clear for windows

func FindVoiceChannel

func FindVoiceChannel(userID string) string

FindVoiceChannel finds the voice channel containing a specific user by their discord ID

func GetGuild

func GetGuild(channelID string) (string, error)

GetGuild returns the guild ID from a channel ID

func GetYoutubeAPIKey

func GetYoutubeAPIKey() string

func HumanReadableNumber

func HumanReadableNumber[T number](number T) string

HumanReadableNumber - turns 100000 into 100,000. Making it much easier to read. Accepts both uint64 and int

func SendDirectMessage

func SendDirectMessage(m *discordgo.MessageCreate, content string) (*discordgo.Message, error)

SendDirectMessage will send a direct messag to a user

func SendMessageFailure

func SendMessageFailure(m *discordgo.MessageCreate, content string) (*discordgo.Message, error)

func SendMessageNeutral

func SendMessageNeutral(m *discordgo.MessageCreate, content string) (*discordgo.Message, error)

func SendMessageSuccess

func SendMessageSuccess(m *discordgo.MessageCreate, content string) (*discordgo.Message, error)

func ValidateYoutubeAPIKey

func ValidateYoutubeAPIKey() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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