diff options
Diffstat (limited to 'commands/reset.go')
| -rw-r--r-- | commands/reset.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/reset.go b/commands/reset.go index f9c81d2..d18e6ea 100644 --- a/commands/reset.go +++ b/commands/reset.go @@ -3,16 +3,15 @@ package commands import ( "context" - "git.anhgelus.world/anhgelus/les-copaings-bot/common" "git.anhgelus.world/anhgelus/les-copaings-bot/user" "github.com/nyttikord/gokord/bot" "github.com/nyttikord/gokord/interaction" ) func Reset(ctx context.Context, dg bot.Session, i *interaction.ApplicationCommand) { - var copaings []*user.Copaing + //var copaings []*user.Copaing //TODO: delete everything from cache - common.GetDB(ctx).Where("guild_id = ?", i.GuildID).Delete(&copaings) + //common.GetDB(ctx).Where("guild_id = ?", i.GuildID).Delete(&copaings) resp := interaction.NewMessageResponse().IsEphemeral().Message("L'XP a été reset.").Response() err := interaction.Respond(i.Interaction, resp).Do(ctx) if err != nil { |
