Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

feat: Add flags field to CreateInteractionResponseData #494

Merged
merged 3 commits into from
Mar 17, 2022
Merged

feat: Add flags field to CreateInteractionResponseData #494

merged 3 commits into from
Mar 17, 2022

Conversation

hassiexx
Copy link
Contributor

Description

This adds the flags field to the CreateInteractionResponseData struct as per Discord docs: https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-messages

Breaking Change?

no

Checklist:

  • I have performed a self-review of my own code
  • Commented complex situations or referenced the discord documentation
  • Updated documentation
  • Added/Updated unit tests
  • Added/Updated benchmarks (if this is a performance critical component)

@hassiexx hassiexx changed the title Add flags field to CreateInteractionResponseData feat: Add flags field to CreateInteractionResponseData Mar 16, 2022
interaction.go Outdated
Components []*MessageComponent `json:"components"`
Attachments []*Attachment `json:"attachments"`
AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"`
Flags InteractionMessageFlag `json:"flags,omitempty"`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we instead use the type MessageFlag and discord the new constants.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use MessageFlag

@andersfylling andersfylling merged commit 571e427 into andersfylling:master Mar 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants