Move SQL function to after discord response
This commit is contained in:
parent
1d1e81d8a6
commit
b02c2829c7
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user