Skip to content

Get Invite endpoint does not respect with_expiration=0 #7395

Open
@GnomedDev

Description

@GnomedDev

Description

Using the Get Invite endpoint will always return the expires_at, contrary to the with_expiration query string and documentation.

Steps to Reproduce

  1. curl "https://discord.com/api/v10/invites/m4q4GGss?with_expiration=0" within the next 7 days.
  2. Check the expires_at field.

Expected Behavior

The expires_at field is null or missing.

Current Behavior

The expires_at field is always returned.

Screenshots/Videos

No response

Client and System Information

curl 8.12.1 on Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsyncedSynced to internal tracker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions