Move SQL function to after discord response

This commit is contained in:
2vb 2023-12-26 20:41:58 -08:00
parent 1d1e81d8a6
commit b02c2829c7

View File

@ -152,13 +152,13 @@ func GiveFLHandler(s *discordgo.Session, i *discordgo.InteractionCreate) {
return return
} }
fortnite.GiveEverything(player)
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{ s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource, Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{ Data: &discordgo.InteractionResponseData{
Content: player.DisplayName + " has been granted everything.", Content: player.DisplayName + " has been granted everything.",
}, },
}) })
fortnite.GiveEverything(player)
} }
func unbanHandler(s *discordgo.Session, i *discordgo.InteractionCreate) { func unbanHandler(s *discordgo.Session, i *discordgo.InteractionCreate) {