Closed SamusAranX closed 9 months ago
I have a code snippet in my messageCreate handler like this:
edit := discordgo.NewMessageEdit(messageCreate.ChannelID, messageCreate.ID) edit.Flags = messageCreate.Flags | discordgo.MessageFlagsSuppressEmbeds _, err := session.ChannelMessageEditComplex(edit) if err != nil { return err }
and while this should work according to Discord's documentation, this keeps failing with the following error message:
HTTP 403 Forbidden, {"message": "Cannot edit a message authored by another user", "code": 50005}
Did I miss anything? Is there another way to apply the embed suppression flag to someone else's message while not touching anything else?
You did not miss anything. Components and Embeds are the culprit here. When making request they're not omitted.
Components
Embeds
I have a code snippet in my messageCreate handler like this:
and while this should work according to Discord's documentation, this keeps failing with the following error message:
Did I miss anything? Is there another way to apply the embed suppression flag to someone else's message while not touching anything else?