diff --git a/packages/helpers/src/MessageEmbed.ts b/packages/helpers/src/MessageEmbed.ts index 1834c44..414c64f 100644 --- a/packages/helpers/src/MessageEmbed.ts +++ b/packages/helpers/src/MessageEmbed.ts @@ -1,4 +1,4 @@ -import { APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, ObjectToLower, TypeArray, toSnakeCase } from '@biscuitland/common'; +import { APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, ObjectToLower, TypeArray, toSnakeCase } from "@biscuitland/common"; export class MessageEmbed { constructor(public data: Partial = {}) { @@ -22,7 +22,7 @@ export class MessageEmbed { } addFields(field: TypeArray): this { - this.data.fields?.concat(field); + this.data.fields = this.data.fields!.concat(field); return this; }