AutoMod/src/struct/LogMessage.ts
janderedev 648fe39fe6
Rework logging, various minor fixes
- /kick and /ban are now logged
- Log messages can be received via Discord
- Revolt log messages have 3 different styles
- Requires manual database migration lol
2022-01-04 14:56:01 +01:00

21 lines
No EOL
528 B
TypeScript

type Override = {
description?: string|null;
};
export default class LogMessage {
title: string;
description?: string;
fields?: { title: string, content: string, inline?: boolean }[];
color?: string;
image?: { type: 'BIG'|'THUMBNAIL', url: string };
attachments?: { name: string, content: Buffer }[];
overrides?: {
// These take priority over `revolt`
revoltRvembed?: Override,
revoltQuoteblock?: Override,
revolt?: Override,
discord?: Override,
}
}