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

Get Guild Template endpoint returns incorrect channel payloads #6992

Open
davfsa opened this issue Jul 13, 2024 · 0 comments
Open

Get Guild Template endpoint returns incorrect channel payloads #6992

davfsa opened this issue Jul 13, 2024 · 0 comments
Labels

Comments

@davfsa
Copy link
Contributor

davfsa commented Jul 13, 2024

Description

Get Guild Template endpoint returns some channels fields with the value as null when they are not documented as nullable.

https://discord.com/developers/docs/resources/channel#channel-object

Fields: default_auto_archive_duration, default_thread_rate_limit_per_user, available_tags, and default_forum_layout

Steps to Reproduce

Perform a Get Guild Template request to a template that has channels.

Example payload:

{
  "id": 14,
  "type": 0,
  "name": "REDACTED",
  "position": 14,
  "topic": null,
  "bitrate": 64000,
  "user_limit": 0,
  "nsfw": false,
  "rate_limit_per_user": 0,
  "parent_id": 11,
  "default_auto_archive_duration": null,
  "permission_overwrites": [],
  "available_tags": null,
  "template": "",
  "default_reaction_emoji": null,
  "default_thread_rate_limit_per_user": null,
  "default_sort_order": null,
  "default_forum_layout": null,
  "icon_emoji": null,
  "theme_color": null
}

Expected Behavior

default_auto_archive_duration, default_thread_rate_limit_per_user, available_tags, and default_forum_layout fields should not be present when they are null, as documented

Current Behavior

The fields listed above are sent as having value null, which is not expected

Screenshots/Videos

No response

Client and System Information

Curl

@davfsa davfsa added the bug label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant