mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +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 tts: boolean;
|
||||
public type: MessageType;
|
||||
public readonly url: string;
|
||||
public webhookID: Snowflake;
|
||||
public awaitReactions(filter: CollectorFilter, options?: AwaitReactionsOptions): Promise<Collection<Snowflake, MessageReaction>>;
|
||||
public createReactionCollector(filter: CollectorFilter, options?: ReactionCollectorOptions): ReactionCollector;
|
||||
|
|
@ -682,6 +683,7 @@ declare module 'discord.js' {
|
|||
public id: Snowflake;
|
||||
public name?: string;
|
||||
public proxyURL: string;
|
||||
public size: number;
|
||||
public url: string;
|
||||
public width: number;
|
||||
public setFile(attachment: BufferResolvable | Stream, name?: string): this;
|
||||
|
|
|
|||
Loading…
Reference in a new issue