mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 18:56:10 +10:00
safeimage stuff
This commit is contained in:
@@ -7,6 +7,7 @@ module.exports = {
|
|||||||
if (msg.author.bot) return
|
if (msg.author.bot) return
|
||||||
if (msg.attachments.array().length = 0) return
|
if (msg.attachments.array().length = 0) return
|
||||||
var img = msg.attachments.first()
|
var img = msg.attachments.first()
|
||||||
|
if (img == undefined) return
|
||||||
if (img.height == undefined) return
|
if (img.height == undefined) return
|
||||||
if (msg.channel.nsfw) return
|
if (msg.channel.nsfw) return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user