mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
fix: query is optional for some endpoints (#10621)
* fix(monetization): `query` is optional * refactor: more defaults
This commit is contained in:
@@ -26,7 +26,7 @@ export class PollAPI {
|
||||
channelId: Snowflake,
|
||||
messageId: Snowflake,
|
||||
answerId: number,
|
||||
query: RESTGetAPIPollAnswerVotersQuery,
|
||||
query: RESTGetAPIPollAnswerVotersQuery = {},
|
||||
{ signal }: Pick<RequestData, 'signal'> = {},
|
||||
) {
|
||||
return this.rest.get(Routes.pollAnswerVoters(channelId, messageId, answerId), {
|
||||
|
||||
Reference in New Issue
Block a user