fix: query is optional for some endpoints (#10621)

* fix(monetization): `query` is optional

* refactor: more defaults
This commit is contained in:
Jiralite
2024-11-28 08:11:23 +00:00
committed by GitHub
parent e89c6b66ac
commit 9010b121f4
2 changed files with 3 additions and 3 deletions

View File

@@ -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), {