@@ -269,19 +269,17 @@ class MessageManager extends CachedManager {
269269
270270 /**
271271 * Ends a poll.
272- * @param {Snowflake } channelId The id of the channel
273272 * @param {Snowflake } messageId The id of the message
274273 * @returns {Promise<Message> }
275274 */
276- async endPoll ( channelId , messageId ) {
277- const message = await this . client . rest . post ( Routes . expirePoll ( channelId , messageId ) ) ;
275+ async endPoll ( messageId ) {
276+ const message = await this . client . rest . post ( Routes . expirePoll ( this . channel . id , messageId ) ) ;
278277 return this . _add ( message , false ) ;
279278 }
280279
281280 /**
282281 * Options used for fetching voters of an answer in a poll.
283282 * @typedef {BaseFetchPollAnswerVotersOptions } FetchPollAnswerVotersOptions
284- * @param {Snowflake } channelId The id of the channel
285283 * @param {Snowflake } messageId The id of the message
286284 * @param {number } answerId The id of the answer
287285 */
@@ -291,8 +289,8 @@ class MessageManager extends CachedManager {
291289 * @param {FetchPollAnswerVotersOptions } options The options for fetching the poll answer voters
292290 * @returns {Promise<Collection<Snowflake, User>> }
293291 */
294- async fetchPollAnswerVoters ( { channelId , messageId, answerId, after, limit } ) {
295- const voters = await this . client . rest . get ( Routes . pollAnswerVoters ( channelId , messageId , answerId ) , {
292+ async fetchPollAnswerVoters ( { messageId, answerId, after, limit } ) {
293+ const voters = await this . client . rest . get ( Routes . pollAnswerVoters ( this . channel . id , messageId , answerId ) , {
296294 query : makeURLSearchParams ( { limit, after } ) ,
297295 } ) ;
298296
0 commit comments