Skip to content

Commit

Permalink
Disable notification reply when message is 'pinned' to avoid spam
Browse files Browse the repository at this point in the history
  • Loading branch information
LewsTherinTelescope authored and marvin-roesch committed Nov 25, 2024
1 parent db45338 commit 2473b16
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/cmds/channel-starboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;

0 comments on commit 2473b16

Please sign in to comment.