feat: add a new command - group delete #16

Merged
Kichiyaki merged 3 commits from feat/new-command-group-delete into master 2022-10-12 05:19:07 +00:00
Showing only changes of commit 99c3b8922b - Show all commits

View File

@ -534,7 +534,7 @@ func (c *groupCommand) handleUnsetChannelLosses(s *discordgo.Session, i *discord
func (c *groupCommand) handleDelete(s *discordgo.Session, i *discordgo.InteractionCreate) {
ctx := context.Background()
group := i.ApplicationCommandData().Options[0].Options[0].Options[0].StringValue()
group := i.ApplicationCommandData().Options[0].Options[0].StringValue()
if err := c.svc.Delete(ctx, group, i.GuildID); err != nil {
_ = s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,