Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable notification reply when message is 'pinned' to avoid spam #60

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading