mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
fix: partial summary
This commit is contained in:
parent
4252cb5ce0
commit
112bbc5478
5 changed files with 15 additions and 13 deletions
|
@ -121,11 +121,11 @@ export class GuildSavedMessages extends BaseGuildRepository<SavedMessage> {
|
|||
|
||||
if (msg.poll) {
|
||||
data.poll = {
|
||||
question: msg.poll.question,
|
||||
answers: Array.from(msg.poll.answers.values()).map((answer) => ({
|
||||
id: answer.id,
|
||||
text: answer.text,
|
||||
})),
|
||||
question: msg.poll.question,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -65,13 +65,13 @@ export interface ISavedMessageStickerData {
|
|||
}
|
||||
|
||||
export interface ISavedMessagePollData {
|
||||
question: {
|
||||
text: string;
|
||||
};
|
||||
answers: {
|
||||
id: number;
|
||||
text: string | null;
|
||||
}[];
|
||||
question: {
|
||||
text: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ISavedMessageData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue