From 3113593f4ff07f0498a78d93fe758231231918a1 Mon Sep 17 00:00:00 2001 From: MapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Wed, 22 Dec 2021 14:02:54 -0600 Subject: [PATCH] improved updates --- src/renderer.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer.ts b/src/renderer.ts index c02da18..81b4b19 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -110,9 +110,14 @@ export class MessageRenderer { this.message = await this.message.edit({ ...options, - // need to ensure that, if there's no text, it's erased + // need to ensure that the proper fields are erased if there's no content // eslint-disable-next-line unicorn/no-null content: options.content ?? null, + // components: options.components?.length + // ? options.components + // : null, + // eslint-disable-next-line unicorn/no-null + embeds: options.embeds ?? [], }) } else { this.message = await this.channel.send(options)