mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
refactor(MessageOptions): move replyTo to reply#messageReference and add failIfNotExists (#5298)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com>
This commit is contained in:
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@@ -3198,7 +3198,7 @@ declare module 'discord.js' {
|
||||
files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[];
|
||||
code?: string | boolean;
|
||||
split?: boolean | SplitOptions;
|
||||
replyTo?: MessageResolvable;
|
||||
reply?: ReplyOptions;
|
||||
}
|
||||
|
||||
type MessageReactionResolvable = MessageReaction | Snowflake;
|
||||
@@ -3447,6 +3447,11 @@ declare module 'discord.js' {
|
||||
maxUsers?: number;
|
||||
}
|
||||
|
||||
interface ReplyOptions {
|
||||
messageReference: MessageResolvable;
|
||||
failIfNotExists?: boolean;
|
||||
}
|
||||
|
||||
interface ResolvedOverwriteOptions {
|
||||
allow: Permissions;
|
||||
deny: Permissions;
|
||||
|
||||
Reference in New Issue
Block a user