Updated discriminators, fixed singlenotify on message publish
diff --git a/src/commands/nucleus/premium.ts b/src/commands/nucleus/premium.ts
index be1a610..2376062 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}`
+ ? `automatically applied by ` + (gaveUser.discriminator ? `${gaveUser.username}#${gaveUser.discriminator}` : `@${gaveUser.username}`)
: `given by <@${hasPremium[1]}>`
}**\n\n`;
}
diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts
index 98ffcff..cd4778a 100644
--- a/src/events/messageCreate.ts
+++ b/src/events/messageCreate.ts
@@ -32,9 +32,10 @@
await message.crosspost();
} else {
await singleNotify(
- `Nucleus does not have Manage Messages in <#${message.channel.id}>`,
+ "crosspost.noManageMessages",
message.guild.id,
- true
+ `Nucleus does not have Manage Messages in <#${message.channel.id}>`,
+ "Warning"
);
}
}
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 459b1d6..012f076 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -192,6 +192,7 @@
interface TranscriptAuthor {
username: string;
+ discriminator?: string;
nickname?: string;
id: string;
iconURL?: string;
@@ -389,6 +390,7 @@
type: type,
for: {
username: member!.user.username,
+ discriminator: member!.user.discriminator,
id: member!.user.id,
topRole: {
color: member!.roles.highest.color
@@ -402,6 +404,7 @@
createdTimestamp: Date.now(),
createdBy: {
username: interaction.user.username,
+ discriminator: interaction.user.discriminator,
id: interaction.user.id,
topRole: {
color: interactionMember?.roles.highest.color ?? 0x000000
@@ -417,6 +420,7 @@
id: message.id,
author: {
username: message.author.username,
+ discriminator: message.author.discriminator,
id: message.author.id,
topRole: {
color: message.member ? message.member.roles.highest.color : 0x000000