mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 03:31:03 +00:00
fix: dont pass channel_id to API when replying
This commit is contained in:
parent
2eafeeca55
commit
274ae9935e
1 changed files with 1 additions and 2 deletions
|
|
@ -174,8 +174,7 @@ class APIMessage {
|
||||||
if (typeof this.options.replyTo !== 'undefined') {
|
if (typeof this.options.replyTo !== 'undefined') {
|
||||||
const message_id = this.target.messages.resolveID(this.options.replyTo);
|
const message_id = this.target.messages.resolveID(this.options.replyTo);
|
||||||
if (message_id) {
|
if (message_id) {
|
||||||
const channel_id = typeof this.options.replyTo === 'string' ? this.target.id : this.options.replyTo.channel.id;
|
message_reference = { message_id };
|
||||||
message_reference = { message_id, channel_id };
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue