mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 06:26:08 +00:00
fix(helpers): addFields dont add fields
This commit is contained in:
parent
3f1d37ba68
commit
490898a56f
@ -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 {
|
export class MessageEmbed {
|
||||||
constructor(public data: Partial<APIEmbed> = {}) {
|
constructor(public data: Partial<APIEmbed> = {}) {
|
||||||
@ -22,7 +22,7 @@ export class MessageEmbed {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addFields(field: TypeArray<APIEmbedField>): this {
|
addFields(field: TypeArray<APIEmbedField>): this {
|
||||||
this.data.fields?.concat(field);
|
this.data.fields = this.data.fields!.concat(field);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user