From d4d129f3f13988d96d3dc8aa47183f96c01568e2 Mon Sep 17 00:00:00 2001 From: LewsTherinTelescope <92685708+LewsTherinTelescope@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:22:58 -0600 Subject: [PATCH] Disable notification reply when message is 'pinned' to avoid spam --- src/cmds/channel-starboard.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cmds/channel-starboard.ts b/src/cmds/channel-starboard.ts index 8ff6b2f..1ef096e 100644 --- a/src/cmds/channel-starboard.ts +++ b/src/cmds/channel-starboard.ts @@ -108,10 +108,10 @@ export default { } }); - const notificationMessage = await message.reply({ - content: 'Pinning...', - allowedMentions: { users: [] }, - }); + //const notificationMessage = await message.reply({ + // content: 'Pinning...', + // allowedMentions: { users: [] }, + //}); let username, avatarURL; if (message.webhookId) { @@ -163,10 +163,10 @@ export default { const channel = await client.channels.fetch(channelId) as StarboardCapableChannel; await getUsableWebhook(channel).then(wh => wh.send(clonedMessage as WebhookMessageCreateOptions)); - await notificationMessage.edit({ - content: `<@${pinner.id}> pinned this message to this channel's starboard. See all pinned messages: <#${starThreadId}>`, - allowedMentions: { users: [] }, - }); + //await notificationMessage.edit({ + // content: `<@${pinner.id}> pinned this message to this channel's starboard. See all pinned messages: <#${starThreadId}>`, + // allowedMentions: { users: [] }, + //}); } } } as Module;