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:
ckohen
2021-05-10 03:27:36 -07:00
committed by GitHub
parent 533c2471c2
commit 1ecda83da7
4 changed files with 27 additions and 8 deletions

7
typings/index.d.ts vendored
View File

@@ -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;