FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Issue · GitHub

DiscordMessage.ModifyEmbedSuppressionAsync is unable to unsuppress embeds #2449

Description

Summary

When using DiscordMessage.ModifyEmbedSuppressionAsync(false) to attempt to unsuppress embeds on a message, nothing happens. It looks like this is because D#+ sets the message's flags to null in the API request if hideEmbeds is false—but this means it does not explicitly remove the flag for SUPPRESS_EMBEDS.

What version of the library are you using?

v5.0.0-nightly (make sure you are using the latest nightly!)

What .NET version are you using? Make sure to use the latest patch release for your major version.

.NET 10.0

Operating System

No response

Reproduction Steps

  1. Send a message with a link that shows an embed. google.com works
  2. Suppress the embed
  3. Make sure your bot has Manage Messages; fetch the message and attempt to call ModifyEmbedSuppressionAsync(false) to unsuppress the embed
  4. Nothing happens; embeds are still suppressed

Trace Logs

[2026-07-07 06:23:56 +00:00] [DSharpPlus.Net.Gateway.ITransportService] [Trace] Received inbound binary gateway event with length 1220
[2026-07-07 06:23:56 +00:00] [DSharpPlus.Net.RestClient] [Trace] Request ID:01KWXKYQX0JWVPJ6QXZ17W6NBA: Route has no known hash: channels/1490761150789586985/messages/:message_id.
[2026-07-07 06:23:56 +00:00] [DSharpPlus.Net.RestClient] [Trace] Request ID:01KWXKYQX0JWVPJ6QXZ17W6NBA - Initial bucket capacity: 5
[2026-07-07 06:23:56 +00:00] [DSharpPlus.Net.RestClient] [Trace] Request 01KWXKYQX0JWVPJ6QXZ17W6NBA: {"type":0,"content":"this has flags\nhttps://google.com","mentions":[],"mention_roles":[],"attachments":[],"embeds":[],"timestamp":"2026-07-07T06:09:18.674000+00:00","edited_timestamp":"2026-07-07T06:09:37.912000+00:00","flags":4100,"components":[],"id":"1523933915063255080","channel_id":"1490761150789586985","author":{"id":"455432936339144705","username":"floatingmilkshake","avatar":"5095e82a9e7d2e0f25476173bc693bff","discriminator":"0","public_flags":256,"flags":256,"banner":null,"accent_color":null,"global_name":"FloatingMilkshake","avatar_decoration_data":null,"collectibles":null,"display_name_styles":null,"banner_color":null,"clan":null,"primary_guild":null},"pinned":false,"mention_everyone":false,"tts":false}

[2026-07-07 06:23:56 +00:00] [DSharpPlus.Net.RestClient] [Trace] Request ID:01KWXKYR1KQ5Q21ZJ0Z6AMXJWE: Checking bucket, current state is [Remaining: 4, Reserved: 0]
[2026-07-07 06:23:56 +00:00] [DSharpPlus.Net.RestClient] [Trace] Request ID:01KWXKYR1KQ5Q21ZJ0Z6AMXJWE: Allowed request, current state is [Remaining: 4, Reserved: 1]
[2026-07-07 06:23:57 +00:00] [DSharpPlus.Net.RestClient] [Trace] Request ID:01KWXKYR1KQ5Q21ZJ0Z6AMXJWE - Initial bucket capacity: 5
[2026-07-07 06:23:57 +00:00] [DSharpPlus.Net.RestClient] [Trace] Request 01KWXKYR1KQ5Q21ZJ0Z6AMXJWE: {"type":0,"content":"this has flags\nhttps://google.com","mentions":[],"mention_roles":[],"attachments":[],"embeds":[],"timestamp":"2026-07-07T06:09:18.674000+00:00","edited_timestamp":"2026-07-07T06:09:37.912000+00:00","flags":4100,"components":[],"id":"1523933915063255080","channel_id":"1490761150789586985","author":{"id":"455432936339144705","username":"floatingmilkshake","avatar":"5095e82a9e7d2e0f25476173bc693bff","discriminator":"0","public_flags":256,"flags":256,"banner":null,"accent_color":null,"global_name":"FloatingMilkshake","avatar_decoration_data":null,"collectibles":null,"display_name_styles":null,"banner_color":null,"clan":null,"primary_guild":null},"pinned":false,"mention_everyone":false,"tts":false}

Exceptions or other error messages

Anything else you'd like to share

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    Effort

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL