Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose flags on MessageEdit so you can suppress embeds on other messa…
…ges (bwmarrin#973) * Expose Flags on MessageEdit and add SuppressEmbeds Also fix typo in the message flags enum * Fix deprecation comment * Add omitempty to Flags member I wasn't sure if this was going to work but the documentation says: > The "omitempty" option specifies that the field should be omitted from the encoding if the field has an empty value, defined as false, 0, a nil pointer, a nil interface value, and any empty array, slice, map, or string. Therefore, if Flags is unmodified it will be omitted. * Make Components omitempty I think the null value here may be triggering the "Cannot edit a message authored by another user" * Remove convenience function for now * Move deprecated member out of list Stops the gofmt error * Fix golint issue * Change deprecation comment * feat: code review changes Co-authored-by: nitroflap <[email protected]>
- Loading branch information