ping

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &dcommand.SummitCommand{
	Command:     "ping",
	Category:    dcommand.CategoryGeneral,
	Description: "Displays bot latency",
	Run: (func(data *dcommand.Data) {
		msg, err := functions.SendBasicMessage(data.ChannelID, "Ping...")
		if err != nil {
			return
		}
		started := time.Now()
		functions.EditBasicMessage(msg.ChannelID, msg.ID, "Pong! (Edit): "+(time.Since(started)*time.Microsecond).String())
	}),
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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