Update TextBasedChannel.js

This commit is contained in:
John Marlo 2022-04-01 15:55:32 +08:00 committed by GitHub
parent 2d3e6ec271
commit 4bb60f3630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,9 +166,9 @@ class TextBasedChannel {
let messagePayload;
if (options instanceof MessagePayload) {
messagePayload = options.resolveData();
messagePayload = await options.resolveData();
} else {
messagePayload = MessagePayload.create(this, options).resolveData();
messagePayload = await MessagePayload.create(this, options).resolveData();
}
const { data, files } = await messagePayload.resolveFiles();