Reformat using prettier
diff --git a/src/events/messageEdit.ts b/src/events/messageEdit.ts
index f5a28a4..3b7f482 100644
--- a/src/events/messageEdit.ts
+++ b/src/events/messageEdit.ts
@@ -8,8 +8,9 @@
if (newMessage.author.id === client.user!.id) return;
if (newMessage.author.bot) return;
if (!newMessage.guild) return;
- const { log, isLogging, NucleusColors, entry, renderUser, renderDelta, renderNumberDelta, renderChannel } = client.logger;
-
+ const { log, isLogging, NucleusColors, entry, renderUser, renderDelta, renderNumberDelta, renderChannel } =
+ client.logger;
+
const replyTo: MessageReference | null = newMessage.reference;
let newContent = newMessage.cleanContent.replaceAll("`", "‘");
let oldContent = oldMessage.cleanContent.replaceAll("`", "‘");
@@ -21,7 +22,7 @@
attachmentJump = ` [[View attachments]](${config})`;
}
if (newMessage.crosspostable !== oldMessage.crosspostable) {
- if(!await isLogging(newMessage.guild.id, "messageAnnounce")) return;
+ if (!(await isLogging(newMessage.guild.id, "messageAnnounce"))) return;
if (!replyTo) {
const data = {
meta: {
@@ -38,15 +39,12 @@
list: {
messageId: entry(newMessage.id, `\`${newMessage.id}\``),
sentBy: entry(newMessage.author.id, renderUser(newMessage.author)),
- sentIn: entry(newMessage.channel.id, renderChannel(newMessage.channel as Discord.GuildBasedChannel)),
- sent: entry(
- newMessage.createdTimestamp,
- renderDelta(newMessage.createdTimestamp)
+ sentIn: entry(
+ newMessage.channel.id,
+ renderChannel(newMessage.channel as Discord.GuildBasedChannel)
),
- published: entry(
- newMessage.editedTimestamp!,
- renderDelta(newMessage.editedTimestamp!)
- ),
+ sent: entry(newMessage.createdTimestamp, renderDelta(newMessage.createdTimestamp)),
+ published: entry(newMessage.editedTimestamp!, renderDelta(newMessage.editedTimestamp!)),
mentions: renderNumberDelta(oldMessage.mentions.users.size, newMessage.mentions.users.size),
attachments: entry(
renderNumberDelta(oldMessage.attachments.size, newMessage.attachments.size),
@@ -60,7 +58,7 @@
return log(data);
}
}
- if (!await isLogging(newMessage.guild.id, "messageUpdate")) return;
+ if (!(await isLogging(newMessage.guild.id, "messageUpdate"))) return;
if (!newMessage.editedTimestamp) {
return;
}