Add different transcript types
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 89c108b..a5d5149 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -367,13 +367,14 @@
}
async createTranscript(
+ type: "ticket" | "purge",
messages: Message[],
interaction: MessageComponentInteraction | CommandInteraction,
member: GuildMember
) {
const interactionMember = await interaction.guild?.members.fetch(interaction.user.id);
const newOut: Omit<TranscriptSchema, "code"> = {
- type: "ticket",
+ type: type,
for: {
username: member!.user.username,
discriminator: parseInt(member!.user.discriminator),