@satorijs/adapter-discord 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -284,7 +284,7 @@ var Sender = class {
284
284
  this.buffer = "";
285
285
  this.addition = {};
286
286
  }
287
- async sendMessage(elements) {
287
+ async render(elements) {
288
288
  for (const { type, attrs, children } of elements) {
289
289
  if (type === "text") {
290
290
  this.buffer += attrs.content;
@@ -332,8 +332,13 @@ var Sender = class {
332
332
  } else {
333
333
  await this.sendMessage(children);
334
334
  }
335
+ } else {
336
+ await this.render(children);
335
337
  }
336
338
  }
339
+ }
340
+ async sendMessage(elements) {
341
+ await this.render(elements);
337
342
  await this.sendBuffer();
338
343
  }
339
344
  async send(content) {