mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13: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
|
||||
* @type {boolean}
|
||||
* @readonly
|
||||
*/
|
||||
get 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 proxyURL: string;
|
||||
public size: number;
|
||||
public readonly spoiler: boolean;
|
||||
public url: string;
|
||||
public width: number | null;
|
||||
public readonly spoiler: boolean;
|
||||
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
|
||||
public setName(name: string): this;
|
||||
public toJSON(): object;
|
||||
|
||||
Reference in New Issue
Block a user