From 4b4c20556653389aa346dd77dd869b59367c6c49 Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Sun, 26 Sep 2021 23:04:53 -0500 Subject: [PATCH] Make profile messages ephemeral --- src/discord/commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/discord/commands.go b/src/discord/commands.go index 9f99e3dd..debab30c 100644 --- a/src/discord/commands.go +++ b/src/discord/commands.go @@ -79,6 +79,7 @@ func (bot *botInstance) handleProfileCommand(ctx context.Context, i *Interaction Type: InteractionCallbackTypeChannelMessageWithSource, Data: &InteractionCallbackData{ Content: "", + Flags: FlagEphemeral, }, }) if err != nil { @@ -107,6 +108,7 @@ func (bot *botInstance) handleProfileCommand(ctx context.Context, i *Interaction Type: InteractionCallbackTypeChannelMessageWithSource, Data: &InteractionCallbackData{ Content: fmt.Sprintf("<@%s> hasn't linked a Handmade Network profile.", member.User.ID), + Flags: FlagEphemeral, }, }) if err != nil { @@ -124,6 +126,7 @@ func (bot *botInstance) handleProfileCommand(ctx context.Context, i *Interaction Type: InteractionCallbackTypeChannelMessageWithSource, Data: &InteractionCallbackData{ Content: fmt.Sprintf("<@%s>'s profile can be viewed at %s.", member.User.ID, url), + Flags: FlagEphemeral, }, }) if err != nil {