Skip to content

Commit

Permalink
docs: correctly type getters (#7500)
Browse files Browse the repository at this point in the history
  • Loading branch information
IRONM00N committed Feb 20, 2022
1 parent 3e105a0 commit ffecf08
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 228 deletions.
1 change: 1 addition & 0 deletions packages/discord.js/src/structures/GuildPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class GuildPreview extends Base {
new Collection(),
);
}

/**
* The timestamp this guild was created at
* @type {number}
Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/src/structures/Sticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ class Sticker extends Base {
* <info>If the sticker's format is {@link StickerFormatType.Lottie}, it returns
* the URL of the Lottie JSON file.</info>
* @type {string}
* @readonly
*/
get url() {
return this.client.rest.cdn.sticker(this.id, this.format === StickerFormatType.Lottie ? 'json' : 'png');
Expand Down

0 comments on commit ffecf08

Please sign in to comment.