docs: correctly type getters (#7500)

This commit is contained in:
IRONM00N
2022-02-20 07:36:46 -05:00
committed by GitHub
parent 3e105a0bbb
commit ffecf08495
3 changed files with 232 additions and 228 deletions

View File

@@ -115,6 +115,7 @@ class GuildPreview extends Base {
new Collection(), new Collection(),
); );
} }
/** /**
* The timestamp this guild was created at * The timestamp this guild was created at
* @type {number} * @type {number}

View File

@@ -160,6 +160,7 @@ class Sticker extends Base {
* <info>If the sticker's format is {@link StickerFormatType.Lottie}, it returns * <info>If the sticker's format is {@link StickerFormatType.Lottie}, it returns
* the URL of the Lottie JSON file.</info> * the URL of the Lottie JSON file.</info>
* @type {string} * @type {string}
* @readonly
*/ */
get url() { get url() {
return this.client.rest.cdn.sticker(this.id, this.format === StickerFormatType.Lottie ? 'json' : 'png'); return this.client.rest.cdn.sticker(this.id, this.format === StickerFormatType.Lottie ? 'json' : 'png');

File diff suppressed because it is too large Load Diff