helpers

package
v0.0.0-...-99e36ab Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package helpers contains helpers functions that can be use globally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMessageAfter

func DeleteMessageAfter(s *discordgo.Session, msg *discordgo.Message, duration time.Duration)

DeleteMessageAfter tries to delete given message after a specified duration.

func GetEnvOrDefault

func GetEnvOrDefault(env, def string) string

func GetRevision

func GetRevision() string

func GetVersion

func GetVersion() string

func MakeTestSession

func MakeTestSession() *discordgo.Session

TODO: a better way to get general token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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