Fix MessageEdit

Know: Webhook Edit error
This commit is contained in:
March 7th
2022-03-21 12:16:46 +07:00
parent 33c82f4e81
commit f5d2469842
3 changed files with 47 additions and 4 deletions

View File

@@ -215,7 +215,6 @@ class TextBasedChannel {
}
const { body, files } = await messagePayload.resolveFiles();
console.log(body);
// const d = await this.client.api.channels[this.id].messages.post({ body, files });
const d = await _send(this.client, this.id, body, files);
return this.messages.cache.get(d.id) ?? this.messages._add(d);