mirror of
https://github.com/danbulant/discord.js
synced 2026-06-21 07:42:36 +00:00
chore: get this back to the right state
This commit is contained in:
parent
eadeeed72e
commit
e43ad1eea9
2 changed files with 4 additions and 2 deletions
|
|
@ -172,7 +172,9 @@ class APIMessage {
|
|||
|
||||
let message_reference;
|
||||
if (typeof this.options.replyTo !== 'undefined') {
|
||||
const message_id = this.target.messages.resolveID(this.options.replyTo);
|
||||
const message_id = this.isMessage
|
||||
? this.target.channel.messages.resolveID(this.options.replyTo)
|
||||
: this.target.messages.resolveID(this.options.replyTo);
|
||||
if (message_id) {
|
||||
message_reference = { message_id };
|
||||
}
|
||||
|
|
|
|||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
|
|
@ -1012,7 +1012,7 @@ declare module 'discord.js' {
|
|||
public webhookID: Snowflake | null;
|
||||
public flags: Readonly<MessageFlags>;
|
||||
public reference: MessageReference | null;
|
||||
public replyReference: Message | null;
|
||||
public readonly referencedMessage: Message | null;
|
||||
public awaitReactions(
|
||||
filter: CollectorFilter,
|
||||
options?: AwaitReactionsOptions,
|
||||
|
|
|
|||
Loading…
Reference in a new issue