mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 13:25:03 +00:00
more fixes
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
343a91e3c3
commit
c33a216857
23 changed files with 81 additions and 58 deletions
|
@ -53,13 +53,13 @@ export class GuildSavedMessages extends BaseGuildRepository<SavedMessage> {
|
|||
title: embed.title,
|
||||
description: embed.description,
|
||||
url: embed.url,
|
||||
timestamp: embed.timestamp,
|
||||
timestamp: embed.timestamp ? Date.parse(embed.timestamp) : null,
|
||||
color: embed.color,
|
||||
|
||||
fields: embed.fields.map((field) => ({
|
||||
name: field.name,
|
||||
value: field.value,
|
||||
inline: field.inline,
|
||||
inline: field.inline ?? false,
|
||||
})),
|
||||
|
||||
author: embed.author
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { Snowflake, StickerFormatType, StickerType } from "discord.js";
|
||||
import { Column, Entity, PrimaryColumn } from "typeorm";
|
||||
|
||||
export interface ISavedMessageAttachmentData {
|
||||
|
@ -55,13 +55,13 @@ export interface ISavedMessageEmbedData {
|
|||
}
|
||||
|
||||
export interface ISavedMessageStickerData {
|
||||
format: string;
|
||||
format: StickerFormatType;
|
||||
guildId: Snowflake | null;
|
||||
id: Snowflake;
|
||||
name: string;
|
||||
description: string | null;
|
||||
available: boolean | null;
|
||||
type: string | null;
|
||||
type: StickerType | null;
|
||||
}
|
||||
|
||||
export interface ISavedMessageData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue