mirror of
https://github.com/litruv/DAdmin.git
synced 2026-11-27 00:45:57 +11:00
safeimage stuff
This commit is contained in:
1 parent
1ddd172478
commit
a74b850587
1 file changed
+1
@@ -7,6 +7,7 @@ module.exports = {
|
||||
if (msg.author.bot) return
|
||||
if (msg.attachments.array().length = 0) return
|
||||
var img = msg.attachments.first()
|
||||
if (img == undefined) return
|
||||
if (img.height == undefined) return
|
||||
if (msg.channel.nsfw) return
|
||||
|
||||
|
||||
Reference in new issue
Block a user