usercommands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Avatar

func Avatar(ctx *crouter.Ctx) (err error)

Avatar returns the user's, or the given member's, avatar

func Color

func Color(ctx *crouter.Ctx) (err error)

Color shows a preview of the given color code

func EmojiInfo

func EmojiInfo(ctx *crouter.Ctx) (err error)

EmojiInfo ...

func Enlarge

func Enlarge(ctx *crouter.Ctx) (err error)

Enlarge enlarges up to 10 custom emoji

func GuildInfo

func GuildInfo(ctx *crouter.Ctx) (err error)

GuildInfo command shows information about the current guild

func Hello

func Hello(ctx *crouter.Ctx) (err error)

Hello says hello to the user invoking the command

func Init

func Init(router *crouter.Router)

Init adds all the commands from this package to the router

func Invite

func Invite(ctx *crouter.Ctx) (err error)

Invite sends an invite link for the bot

func PKUserInfo

func PKUserInfo(ctx *crouter.Ctx) (err error)

PKUserInfo runs UserInfo with the user ID returned by

func Ping

func Ping(ctx *crouter.Ctx) (err error)

Ping command: replies with latency and message edit time

func PrettyDurationString

func PrettyDurationString(duration time.Duration) (out string)

PrettyDurationString ...

func RoleInfo

func RoleInfo(ctx *crouter.Ctx) (err error)

RoleInfo shows information about a role

func Snowflake

func Snowflake(ctx *crouter.Ctx) (err error)

Snowflake shows the timestamp of all discord IDs given

func UserInfo

func UserInfo(ctx *crouter.Ctx) (err error)

UserInfo returns user info, formatted nicely

Types

This section is empty.

Jump to

Keyboard shortcuts

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