improved updates

This commit is contained in:
MapleLeaf
2021-12-22 14:02:54 -06:00
parent 7431ec7f9a
commit 3113593f4f

View File

@@ -110,9 +110,14 @@ export class MessageRenderer {
this.message = await this.message.edit({ this.message = await this.message.edit({
...options, ...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 // eslint-disable-next-line unicorn/no-null
content: options.content ?? null, content: options.content ?? null,
// components: options.components?.length
// ? options.components
// : null,
// eslint-disable-next-line unicorn/no-null
embeds: options.embeds ?? [],
}) })
} else { } else {
this.message = await this.channel.send(options) this.message = await this.channel.send(options)