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

Invalid JSON Params typing for modifying a channel in the API Documentation #7321

Open
Apokalypt opened this issue Dec 30, 2024 · 3 comments

Comments

@Apokalypt
Copy link

Description

All JSON Params when calling the route Modify a channel seems optional based on testing and what I see on the developer tools when using Discord Client. However, when we look the documentation, some of them are indicated as required like the name. Is it intended or a real error ?

I've tested while trying to edit a forum post by providing only applied_tags or to edit a channel by providing only topic

Steps to Reproduce

  1. Go to https://discord.com/developers/docs/resources/channel#modify-channel

Expected Behavior

N/A

Current Behavior

N/A

Screenshots/Videos

No response

Client and System Information

  • Operating System : MacOs Sequoia 15.1.1
  • Browser : Google Chrome
@Apokalypt Apokalypt changed the title Invalid JSON Params typing for modifying a channel Invalid JSON Params typing for modifying a channel in the API Documentation Dec 30, 2024
@MCausc78
Copy link
Contributor

image
Have you tried reading description fully?

@Apokalypt
Copy link
Author

Have you tried reading description fully?

Yes, but that doesn't change the fact that the typing shown below is confusing, since some are marked optional with ? and others not...

@advaith1
Copy link
Contributor

those extra optional markers in the table are accidental and redundant, and should be removed

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

No branches or pull requests

3 participants