mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00: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:
parent
75745fe2ba
commit
b068abb5de
1 changed files with 2 additions and 0 deletions
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue