fix: dont pass channel_id to API when replying

This commit is contained in:
monbrey 2020-11-17 08:29:18 +11:00
parent 2eafeeca55
commit 274ae9935e

View file

@ -174,8 +174,7 @@ class APIMessage {
if (typeof this.options.replyTo !== 'undefined') {
const message_id = this.target.messages.resolveID(this.options.replyTo);
if (message_id) {
const channel_id = typeof this.options.replyTo === 'string' ? this.target.id : this.options.replyTo.channel.id;
message_reference = { message_id, channel_id };
message_reference = { message_id };
}
}