interaction

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorToInteractionResponse

func ErrorToInteractionResponse(err error) *discordgo.InteractionResponse

Types

type SafeError

type SafeError string

SafeError is a friendly error message sent in an interaction response. It should not contain any internal state information. It should take the form of `mfw ...` and be all lower-case.

func ElseSafe

func ElseSafe(err error, safeMessage string) SafeError

ElseSafe checks if error is a SafeError. Otherwise, it returns SafeError as the contents of safeMessage.

func (SafeError) Error

func (e SafeError) Error() string

Jump to

Keyboard shortcuts

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