mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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_');
|
||||
|
||||
Reference in New Issue
Block a user