mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
typings: add declaration of Message#url and MessageAttachment#size (#2821)
* add url to message typings * also its readonly * message attachment sizing typing
This commit is contained in:
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -657,6 +657,7 @@ declare module 'discord.js' {
|
|||||||
public system: boolean;
|
public system: boolean;
|
||||||
public tts: boolean;
|
public tts: boolean;
|
||||||
public type: MessageType;
|
public type: MessageType;
|
||||||
|
public readonly url: string;
|
||||||
public webhookID: Snowflake;
|
public webhookID: Snowflake;
|
||||||
public awaitReactions(filter: CollectorFilter, options?: AwaitReactionsOptions): Promise<Collection<Snowflake, MessageReaction>>;
|
public awaitReactions(filter: CollectorFilter, options?: AwaitReactionsOptions): Promise<Collection<Snowflake, MessageReaction>>;
|
||||||
public createReactionCollector(filter: CollectorFilter, options?: ReactionCollectorOptions): ReactionCollector;
|
public createReactionCollector(filter: CollectorFilter, options?: ReactionCollectorOptions): ReactionCollector;
|
||||||
@@ -682,6 +683,7 @@ declare module 'discord.js' {
|
|||||||
public id: Snowflake;
|
public id: Snowflake;
|
||||||
public name?: string;
|
public name?: string;
|
||||||
public proxyURL: string;
|
public proxyURL: string;
|
||||||
|
public size: number;
|
||||||
public url: string;
|
public url: string;
|
||||||
public width: number;
|
public width: number;
|
||||||
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
|
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
|
||||||
|
|||||||
Reference in New Issue
Block a user