mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
feat(MessageAttachment): description (alt text) support (#6871)
Co-authored-by: D Trombett <maxtromb.dt@gmail.com>
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user