mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: correctly type getters (#7500)
This commit is contained in:
@@ -115,6 +115,7 @@ class GuildPreview extends Base {
|
||||
new Collection(),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The timestamp this guild was created at
|
||||
* @type {number}
|
||||
|
||||
@@ -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');
|
||||
|
||||
458
packages/discord.js/typings/index.d.ts
vendored
458
packages/discord.js/typings/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user