This commit is contained in:
@@ -134,7 +134,16 @@ func GiveCommand(s *discordgo.Session, i *discordgo.InteractionCreate) (string,
|
|||||||
amount = -amount
|
amount = -amount
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("✅ Successfully %s %s %d Himbucks.", action, recipient.Username, amount), nil
|
// Delete public "thinking" message
|
||||||
|
s.InteractionResponseDelete(i.Interaction)
|
||||||
|
|
||||||
|
// Send ephemeral success message
|
||||||
|
s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{
|
||||||
|
Content: fmt.Sprintf("Successfully %s %s %d Himbucks.", action, recipient.Username, amount),
|
||||||
|
Flags: discordgo.MessageFlagsEphemeral,
|
||||||
|
})
|
||||||
|
|
||||||
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func isAdmin(userID string) bool {
|
func isAdmin(userID string) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user