discord_utils

package
v0.0.118 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelName added in v0.0.86

func GetChannelName(ctx disgoman.Context, id string) string

func GetDisplayName added in v0.0.86

func GetDisplayName(ctx disgoman.Context, id string) string

func IsGuildAdmin added in v0.0.70

func IsGuildAdmin(ctx disgoman.Context, user geeksbot.User) bool

func IsGuildMod added in v0.0.70

func IsGuildMod(ctx disgoman.Context, user geeksbot.User) bool

func ParseDateString

func ParseDateString(inTime time.Time) string

func ParseDurationString

func ParseDurationString(inDur time.Duration) string

func SendErrorMessage added in v0.0.37

func SendErrorMessage(ctx disgoman.Context, msg string, err error)

Types

type Snowflake

type Snowflake struct {
	CreationTime time.Time
	WorkerID     int8
	ProcessID    int8
	Increment    int16
}

func ParseSnowflake

func ParseSnowflake(s int64) Snowflake

Jump to

Keyboard shortcuts

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