Readded bot scope (misread article); removed references to discriminators
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 77ff875..2107b67 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -192,7 +192,6 @@
interface TranscriptAuthor {
username: string;
- discriminator: number;
nickname?: string;
id: string;
iconURL?: string;
@@ -390,7 +389,6 @@
type: type,
for: {
username: member!.user.username,
- discriminator: parseInt(member!.user.discriminator),
id: member!.user.id,
topRole: {
color: member!.roles.highest.color
@@ -404,7 +402,6 @@
createdTimestamp: Date.now(),
createdBy: {
username: interaction.user.username,
- discriminator: parseInt(interaction.user.discriminator),
id: interaction.user.id,
topRole: {
color: interactionMember?.roles.highest.color ?? 0x000000
@@ -420,7 +417,6 @@
id: message.id,
author: {
username: message.author.username,
- discriminator: parseInt(message.author.discriminator),
id: message.author.id,
topRole: {
color: message.member ? message.member.roles.highest.color : 0x000000
@@ -499,7 +495,7 @@
out += `> [Crosspost From] ${message.referencedMessage[0]} in ${message.referencedMessage[1]} in ${message.referencedMessage[2]}\n`;
} else out += `> [Reply To] ${message.referencedMessage}\n`;
}
- out += `${message.author.nickname ?? message.author.username}#${message.author.discriminator} (${
+ out += `${message.author.nickname ?? message.author.username} (${
message.author.id
}) (${message.id})`;
out += ` [${new Date(message.createdTimestamp).toISOString()}]`;