mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
docs/typings(MessageAttachment): mark spoiler as readonly, order spoiler in typings (#3714)
This commit is contained in:
@@ -84,6 +84,7 @@ class MessageAttachment {
|
|||||||
/**
|
/**
|
||||||
* Whether or not this attachment has been marked as a spoiler
|
* Whether or not this attachment has been marked as a spoiler
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get spoiler() {
|
get spoiler() {
|
||||||
return Util.basename(this.url).startsWith('SPOILER_');
|
return Util.basename(this.url).startsWith('SPOILER_');
|
||||||
|
|||||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -1027,9 +1027,9 @@ declare module 'discord.js' {
|
|||||||
public name?: string;
|
public name?: string;
|
||||||
public proxyURL: string;
|
public proxyURL: string;
|
||||||
public size: number;
|
public size: number;
|
||||||
|
public readonly spoiler: boolean;
|
||||||
public url: string;
|
public url: string;
|
||||||
public width: number | null;
|
public width: number | null;
|
||||||
public readonly spoiler: boolean;
|
|
||||||
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
|
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
|
||||||
public setName(name: string): this;
|
public setName(name: string): this;
|
||||||
public toJSON(): object;
|
public toJSON(): object;
|
||||||
|
|||||||
Reference in New Issue
Block a user