Skip to content

Commit

Permalink
small lil tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyy committed Dec 29, 2024
1 parent 3259a14 commit 01157cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
25 changes: 0 additions & 25 deletions commands/appeals.go
Original file line number Diff line number Diff line change
@@ -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,
// // },
// }
3 changes: 1 addition & 2 deletions lib/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 01157cf

Please sign in to comment.