fix: JSDocs parse error

This commit is contained in:
March 7th 2022-08-03 19:47:37 +07:00
parent 288d295f8a
commit 931605ae0d
5 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -95,7 +95,7 @@ module.exports = (client, { d: data }, shard) => {
}; };
client.emit( client.emit(
Events.DEBUG, Events.DEBUG,
`${chalk.greenBright('[OK]')} Patched VoiceConnection.prototype.configureNetworking [@discordjs/voice - v0.10.0]`, `${chalk.greenBright('[OK]')} Patched VoiceConnection.prototype.configureNetworking [@discordjs/voice - v0.11.0]`,
); );
/* eslint-enable */ /* eslint-enable */
} }

View File

@ -1431,7 +1431,7 @@ class Guild extends AnonymousGuild {
/** /**
* Marks the guild as read * Marks the guild as read
* @returns {Promise<void>} nothing :) * @returns {Promise<undefined>} nothing :)
* @example * @example
* const guild = client.guilds.fetch('222078108977594368'); * const guild = client.guilds.fetch('222078108977594368');
* guild.read(); * guild.read();

View File

@ -997,7 +997,7 @@ class Message extends Base {
// Added // Added
/** /**
* Marks the message as unread. * Marks the message as unread.
* @returns {boolean} * @returns {Promise<boolean>}
*/ */
async markUnread() { async markUnread() {
await this.client.api.channels[this.channelId].messages[this.id].ack.post({ await this.client.api.channels[this.channelId].messages[this.id].ack.post({
@ -1017,7 +1017,7 @@ class Message extends Base {
/** /**
* Marks the message as read. * Marks the message as read.
* @returns {boolean} * @returns {Promise<boolean>}
*/ */
async markRead() { async markRead() {
await this.client.api.channels[this.channelId].messages[this.id].ack.post({ await this.client.api.channels[this.channelId].messages[this.id].ack.post({

View File

@ -83,8 +83,8 @@ class Application extends Base {
* @param {string} [captcha] The captcha key to add * @param {string} [captcha] The captcha key to add
* @returns {Promise<void>} nothing :) * @returns {Promise<void>} nothing :)
*/ */
async invite(guild_id, permissions = 0n, captcha = null) { async invite(guild_id, permissions, captcha = null) {
permissions = Permissions.resolve(permissions); permissions = Permissions.resolve(permissions || 0n);
const postData = { const postData = {
authorize: true, authorize: true,
guild_id, guild_id,