From 61a1b7e8db0f526acd9985b989e573881cba3adc Mon Sep 17 00:00:00 2001 From: Dusty Pianalto Date: Sun, 19 Apr 2020 22:00:56 -0800 Subject: [PATCH] Add command to add guild to DB --- djpianalto.com/goff/exts/init.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/djpianalto.com/goff/exts/init.go b/djpianalto.com/goff/exts/init.go index d296c8c..6f34cfd 100644 --- a/djpianalto.com/goff/exts/init.go +++ b/djpianalto.com/goff/exts/init.go @@ -123,11 +123,20 @@ func AddCommandHandlers(h *disgoman.CommandManager) { }) _ = h.AddCommand(&disgoman.Command{ Name: "kick", - Aliases: []string{""}, + Aliases: nil, Description: "Kicks the given user with the given reason", OwnerOnly: false, Hidden: false, RequiredPermissions: disgoman.PermissionKickMembers, Invoke: kickUser, }) + _ = h.AddCommand(&disgoman.Command{ + Name: "addGuild", + Aliases: nil, + Description: "Adds the current guild to the database", + OwnerOnly: true, + Hidden: false, + RequiredPermissions: disgoman.PermissionManageServer, + Invoke: addGuild, + }) }