Readded bot scope (misread article); removed references to discriminators
diff --git a/src/commands/nucleus/invite.ts b/src/commands/nucleus/invite.ts
index 561de03..0307c68 100644
--- a/src/commands/nucleus/invite.ts
+++ b/src/commands/nucleus/invite.ts
@@ -23,7 +23,7 @@
.setURL(
`https://discord.com/api/oauth2/authorize?client_id=${
client.user!.id
- }&permissions=407900777662&scope=applications.commands`
+ }&permissions=407900777662&scope=bot%20applications.commands`
)
])
],
diff --git a/src/commands/nucleus/premium.ts b/src/commands/nucleus/premium.ts
index fed2964..be1a610 100644
--- a/src/commands/nucleus/premium.ts
+++ b/src/commands/nucleus/premium.ts
@@ -165,7 +165,7 @@
const gaveUser = await client.users.fetch(hasPremium[1]);
premiumGuild = `**This server has premium! It was ${
hasPremium[2] === 3 && hasPremium[3]
- ? `automatically applied by ${gaveUser.username}#${gaveUser.discriminator}`
+ ? `automatically applied by ${gaveUser.username}`
: `given by <@${hasPremium[1]}>`
}**\n\n`;
}
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()}]`;