From b02c2829c7fbefff522e75c456abf8209f32acc7 Mon Sep 17 00:00:00 2001 From: 2vb <2vb@protonmail.com> Date: Tue, 26 Dec 2023 20:41:58 -0800 Subject: [PATCH] Move SQL function to after discord response --- discord/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/admin.go b/discord/admin.go index 00085f2..ea29203 100644 --- a/discord/admin.go +++ b/discord/admin.go @@ -152,13 +152,13 @@ func GiveFLHandler(s *discordgo.Session, i *discordgo.InteractionCreate) { return } - fortnite.GiveEverything(player) s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{ Type: discordgo.InteractionResponseChannelMessageWithSource, Data: &discordgo.InteractionResponseData{ Content: player.DisplayName + " has been granted everything.", }, }) + fortnite.GiveEverything(player) } func unbanHandler(s *discordgo.Session, i *discordgo.InteractionCreate) {