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

Optional params in Discord API endpoints don't work #118

Open
alboltdrogo opened this issue May 22, 2020 · 2 comments
Open

Optional params in Discord API endpoints don't work #118

alboltdrogo opened this issue May 22, 2020 · 2 comments

Comments

@alboltdrogo
Copy link

Some of the Discord API endpoints that use optional parameters don't work.

For example Create Guild Ban:
The package expects "delete-message-days?" and "reason?", but discord expects "delete-message-days" and "reason".

@bkuhl
Copy link
Contributor

bkuhl commented Oct 29, 2020

Looks like you're right. The question mark indicates they're optional json parameters. Here's the ban docs for reference.

@bkuhl
Copy link
Contributor

bkuhl commented Oct 29, 2020

@alboltdrogo I'd imagine you can omit the ? when using this library as it probably strips them. If not, that's something we'll want to put in place.

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

No branches or pull requests

2 participants