feat: add a new command - group delete
This commit is contained in:
parent
3ee012bdd4
commit
99c3b8922b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user