Skip to content

Commit

Permalink
updated warning message to be friendlier
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip authored Sep 17, 2024
1 parent ec7a97f commit ba9a671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/ENGINE/serverlink/sharedChannels.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports.run = async (message) => {
const blockedInfo = await BlockedUser.findOne({ attributes: ['blockID', 'reason', 'acknowledged'], where: { channelID: postChannelID, userID: message.author.id } }).catch(ERR);
if (blockedInfo) {
if (blockedInfo.acknowledged) return;
const desc = `You have been blocked from \`${channel.guild.name}\` for the following reason:\n**${blockedInfo.reason}**\n\nBy reading this, you have acknowledged it and this warning will not be displayed again.`;
const desc = `You have been blocked from \`${channel.guild.name}\` for the following reason:\n**${blockedInfo.reason}**\n\nThis warning will not be displayed again.`;
await messageFail(message, desc);
return blockedInfo.update({ acknowledged: true });
}
Expand Down

0 comments on commit ba9a671

Please sign in to comment.