feat(MessageAttachment): allow files to be marked as spoilers (#6509)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
Justin
2021-08-25 04:25:45 +08:00
committed by GitHub
parent 5c276398d6
commit 96e26c428d
2 changed files with 20 additions and 1 deletions

1
typings/index.d.ts vendored
View File

@@ -1210,6 +1210,7 @@ export class MessageAttachment {
public width: number | null;
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
public setName(name: string): this;
public setSpoiler(spoiler?: boolean): this;
public toJSON(): unknown;
}