Skip to content

Commit

Permalink
fix: /warnings should be ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
myrkvi committed Jul 10, 2024
1 parent b5297e7 commit 0041d1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/infractions.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ func UserInfractionsHandler(e *handler.CommandEvent) error {

if infrData.TotalCount == 0 {
return e.CreateMessage(discord.NewMessageCreateBuilder().
SetContent("You have no infractions.").Build())
SetContent("You have no infractions.").
SetEphemeral(true).
Build())
}

message := discord.NewMessageCreateBuilder().
Expand Down Expand Up @@ -267,6 +269,7 @@ func UserInfractionButtonHandler(e *handler.ComponentEvent) error {
return e.CreateMessage(discord.NewMessageCreateBuilder().
SetEphemeral(true).
SetContent("You have no infractions.").
SetEphemeral(true).
Build())
}

Expand Down

0 comments on commit 0041d1f

Please sign in to comment.