Socialify

Folder ..

Viewing commands.go
41 lines (38 loc) • 1.0 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package commands

import (
	"github.com/bwmarrin/discordgo"
)

var (
	manageMessagesPermissions int64 = discordgo.PermissionManageMessages
	PermissionKickMembers     int64 = discordgo.PermissionKickMembers
)

var (
	Commands = []*discordgo.ApplicationCommand{
		{
			Name:                     "purge",
			Description:              "Purge messages from the current channel",
			DefaultMemberPermissions: &manageMessagesPermissions,
			Options: []*discordgo.ApplicationCommandOption{
				{
					Type:        discordgo.ApplicationCommandOptionInteger,
					Name:        "amount",
					Description: "The amount of messages to purge",
					Required:    true,
				},
			},
		},
		{
			Name:                     "kick",
			Description:              "Kick a member from the server",
			DefaultMemberPermissions: &PermissionKickMembers,
			Options: []*discordgo.ApplicationCommandOption{
				{
					Type:        discordgo.ApplicationCommandOptionUser,
					Name:        "target",
					Description: "The member to kick",
					Required:    true,
				},
			},
		},
	}
)