commands

package
v0.0.0-...-235a251 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Help = structs.NewCommand(
	"help",
	"misc",
	[]string{},
	true,
	false,
	false,

	func(s *discordgo.Session, m *discordgo.MessageCreate) {
		s.ChannelMessageSend(m.ChannelID, "```go\nCommands:\ngo.ping\ngo.invite\ngo.help\n```")
	},
)
View Source
var Invite = structs.NewCommand(
	"invite",
	"misc",
	[]string{},
	true,
	false,
	false,

	func(s *discordgo.Session, m *discordgo.MessageCreate) {
		s.ChannelMessageSend(m.ChannelID, "https://discord.com/oauth2/authorize?scope=applications.commands%20bot&permissions=268561488&client_id=1007010887447625748")
	},
)
View Source
var Ping = structs.NewCommand(
	"ping",
	"misc",
	[]string{},
	true,
	false,
	false,

	func(s *discordgo.Session, m *discordgo.MessageCreate) {
		s.ChannelMessageSend(m.ChannelID, "Pong! "+s.HeartbeatLatency().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