feat(MessageAttachment): description (alt text) support (#6871)

Co-authored-by: D Trombett <maxtromb.dt@gmail.com>
This commit is contained in:
Jake Ward
2021-11-11 19:29:17 +00:00
committed by GitHub
parent 7630158f59
commit 5e0a7d51fc
5 changed files with 38 additions and 2 deletions

3
typings/index.d.ts vendored
View File

@@ -1463,6 +1463,7 @@ export class MessageAttachment {
public attachment: BufferResolvable | Stream;
public contentType: string | null;
public description: string | null;
public ephemeral: boolean;
public height: number | null;
public id: Snowflake;
@@ -1472,6 +1473,7 @@ export class MessageAttachment {
public readonly spoiler: boolean;
public url: string;
public width: number | null;
public setDescription(description: string): this;
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
public setName(name: string): this;
public setSpoiler(spoiler?: boolean): this;
@@ -4118,6 +4120,7 @@ export interface FetchThreadsOptions {
export interface FileOptions {
attachment: BufferResolvable | Stream;
name?: string;
description?: string;
}
export interface GuildApplicationCommandPermissionData {