diff --git a/commands/appeals.go b/commands/appeals.go index f418f75..cdff10d 100644 --- a/commands/appeals.go +++ b/commands/appeals.go @@ -1,26 +1 @@ package commands - -// import ( -// "github.com/bwmarrin/discordgo" -// "github.com/quackdiscord/bot/services" -// ) - -// func init() { -// services.Commands[banappealCmd.Name] = &services.Command{ -// ApplicationCommand: appealsCmd, -// Handler: handleAppeals, -// } -// } - -// // /appeals check - -// var appealsCmd = &discordgo.ApplicationCommand{ -// Type: discordgo.ChatApplicationCommand, -// Name: "appeals", -// Description: "Manage appeals for the server", -// DefaultMemberPermissions: &moderateMembers, -// // Options: []*discordgo.ApplicationCommandOption{ -// // , -// // banappealCmdRemoveCmd, -// // }, -// } diff --git a/lib/id.go b/lib/id.go index 3130755..c7df130 100644 --- a/lib/id.go +++ b/lib/id.go @@ -6,11 +6,10 @@ import ( // GenerateID generates a random ID with the default alphabet and length of 8 or an overridden length. func GenID(length ...int) (string, error) { - alphabet := nanoid.DefaultAlphabet if length == nil { length = append(length, 12) } - id, err := nanoid.Generate(alphabet, length[0]) + id, err := nanoid.Generate(nanoid.DefaultAlphabet, length[0]) if err != nil { return "", err }