Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Fix guild init slash command
Browse files Browse the repository at this point in the history
  • Loading branch information
JustHumanz committed Sep 10, 2021
1 parent d8e0d28 commit 71fd816
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/engine/initSlash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import (
log "github.com/sirupsen/logrus"
)

var (
VtuberGroupChoices []*discordgo.ApplicationCommandOptionChoice
)

//Start slash command
func InitSlash(Bot *discordgo.Session, GroupsPayload []database.Group, NewGuild *discordgo.Guild) {
var (
VtuberGroupChoices []*discordgo.ApplicationCommandOptionChoice
)
for _, v := range GroupsPayload {
VtuberGroupChoices = append(VtuberGroupChoices, &discordgo.ApplicationCommandOptionChoice{
Name: v.GroupName,
Expand Down

0 comments on commit 71fd816

Please sign in to comment.