Add spoiler tag to uploaded images for member safety
This commit is contained in:
parent
911b3aac8e
commit
00fe44c380
|
|
@ -71,7 +71,7 @@ module.exports = (member, db, client) => {
|
|||
}],
|
||||
files: row.attachments ? JSON.parse(row.attachments).map(file => ({
|
||||
attachment: path.join(__dirname, '../storage', file),
|
||||
name: file
|
||||
name: `SPOILER_${file}`
|
||||
})) : []
|
||||
}).catch(console.error);
|
||||
}).catch(console.error);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ const execute = async (interaction, db, client) => {
|
|||
content: `User <@${user}> has been added to the bad actors list by <@${interaction.user.id}>.`,
|
||||
files: attachments.map(file => ({
|
||||
attachment: path.join(__dirname, '../../storage', file),
|
||||
name: file
|
||||
name: `SPOILER_${file}`
|
||||
}))
|
||||
}).then(msg => {
|
||||
if (msg.channel.type == Discord.ChannelType.GuildAnnouncement) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue