Skip to content

Commit

Permalink
lint: sort methods correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
TTtie committed Jul 11, 2024
1 parent 2b45a9f commit 992e740
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2773,9 +2773,9 @@ declare namespace Dysnomia {
messageID: string,
options: MessageWebhookContent
): Promise<Message<GuildTextableChannel>>;
endPoll(channelID: string, messageID: string): Promise<Message>;
emit<K extends keyof ClientEvents>(event: K, ...args: ClientEvents[K]): boolean;
emit(event: string, ...args: any[]): boolean;
endPoll(channelID: string, messageID: string): Promise<Message>;
executeSlackWebhook(webhookID: string, token: string, options: Record<string, unknown> & { auth?: boolean; threadID?: string }): Promise<void>;
executeSlackWebhook(webhookID: string, token: string, options: Record<string, unknown> & { auth?: boolean; threadID?: string; wait: true }): Promise<Message<GuildTextableChannel>>;
executeWebhook(webhookID: string, token: string, options: WebhookPayload & { wait: true }): Promise<Message<GuildTextableChannel>>;
Expand Down
24 changes: 12 additions & 12 deletions lib/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,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<Array<User>>}
*/
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)
Expand All @@ -684,18 +696,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<Array<User>>}
*/
getPollAnswerVoters(answerID, options) {
return this.#client.getPollAnswerVoters.call(this.#client, this.channel.id, this.id, answerID, options);
}

/**
* Pin the message
* @returns {Promise}
Expand Down

0 comments on commit 992e740

Please sign in to comment.