Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose flags on MessageEdit so you can suppress embeds on other messages #973

Merged
merged 10 commits into from Apr 14, 2022

Commits on Jul 21, 2021

  1. Expose Flags on MessageEdit and add SuppressEmbeds

    Also fix typo in the message flags enum
    nixxquality committed Jul 21, 2021
    Copy the full SHA
    9b2e7db View commit details
    Browse the repository at this point in the history
  2. Fix deprecation comment

    nixxquality committed Jul 21, 2021
    Copy the full SHA
    1646e80 View commit details
    Browse the repository at this point in the history
  3. 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.
    nixxquality committed Jul 21, 2021
    Copy the full SHA
    bfba532 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2021

  1. Make Components omitempty

    I think the null value here may be triggering the "Cannot edit a message authored by another user"
    nixxquality committed Jul 22, 2021
    Copy the full SHA
    666fa59 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    c0381ef View commit details
    Browse the repository at this point in the history
  3. Move deprecated member out of list

    Stops the gofmt error
    nixxquality committed Jul 22, 2021
    Copy the full SHA
    0cb0cd8 View commit details
    Browse the repository at this point in the history
  4. Fix golint issue

    nixxquality committed Jul 22, 2021
    Copy the full SHA
    df80c9f View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. Copy the full SHA
    992bd12 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2022

  1. Copy the full SHA
    5255841 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3a7bd1e View commit details
    Browse the repository at this point in the history