From c74b28d59dcb37cfc229d9d1f033aea6a011c247 Mon Sep 17 00:00:00 2001 From: TTtie Date: Thu, 11 Jul 2024 00:18:24 +0000 Subject: [PATCH] lint: sort methods correctly --- index.d.ts | 2 +- lib/structures/Message.js | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6f83a0a8..13394e82 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2784,9 +2784,9 @@ declare namespace Dysnomia { messageID: string, options: MessageWebhookContent ): Promise>; - endPoll(channelID: string, messageID: string): Promise; emit(event: K, ...args: ClientEvents[K]): boolean; emit(event: string, ...args: any[]): boolean; + endPoll(channelID: string, messageID: string): Promise; executeSlackWebhook(webhookID: string, token: string, options: Record & { auth?: boolean; threadID?: string }): Promise; executeSlackWebhook(webhookID: string, token: string, options: Record & { auth?: boolean; threadID?: string; wait: true }): Promise>; executeWebhook(webhookID: string, token: string, options: WebhookPayload & { wait: true }): Promise>; diff --git a/lib/structures/Message.js b/lib/structures/Message.js index 78a115cf..75e2e3f4 100644 --- a/lib/structures/Message.js +++ b/lib/structures/Message.js @@ -672,6 +672,18 @@ class Message extends Base { return this.#client.endPoll.call(this.#client, this.channel.id, this.id); } + /** + * Gets a list of users that voted for an answer in a poll + * @param {String} answerID The ID of the answer + * @param {Object} [options] Options for fetching the answer list + * @param {String} [options.after] Get users after this user ID + * @param {Number} [options.limit=100] The maximum number of users to get + * @returns {Promise>} + */ + getPollAnswerVoters(answerID, options) { + return this.#client.getPollAnswerVoters.call(this.#client, this.channel.id, this.id, answerID, options); + } + /** * Get a list of users who reacted with a specific reaction * @arg {String} reaction The reaction (Unicode string if Unicode emoji, `emojiName:emojiID` if custom emoji) @@ -688,18 +700,6 @@ class Message extends Base { return this.#client.getMessageReaction.call(this.#client, this.channel.id, this.id, reaction, options); } - /** - * Gets a list of users that voted for an answer in a poll - * @param {String} answerID The ID of the answer - * @param {Object} [options] Options for fetching the answer list - * @param {String} [options.after] Get users after this user ID - * @param {Number} [options.limit=100] The maximum number of users to get - * @returns {Promise>} - */ - getPollAnswerVoters(answerID, options) { - return this.#client.getPollAnswerVoters.call(this.#client, this.channel.id, this.id, answerID, options); - } - /** * Pin the message * @returns {Promise}