mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
show a warning for deleted people
This commit is contained in:
parent
4d1e9c366d
commit
cbef229ccb
2 changed files with 6 additions and 3 deletions
|
@ -26,6 +26,9 @@ module.exports = {
|
||||||
try{
|
try{
|
||||||
let u;
|
let u;
|
||||||
if(!args.user) { args.user = context.user.id }
|
if(!args.user) { args.user = context.user.id }
|
||||||
|
|
||||||
|
if(args.user == "456226577798135808") return editOrReply(context, createEmbed("error", context, "This user has been deleted."))
|
||||||
|
|
||||||
user = await getUser(context, args.user)
|
user = await getUser(context, args.user)
|
||||||
u = user.user
|
u = user.user
|
||||||
if(!u) return editOrReply(context, createEmbed("warning", context, "No users found."))
|
if(!u) return editOrReply(context, createEmbed("warning", context, "No users found."))
|
||||||
|
|
|
@ -118,11 +118,11 @@ const Statics = Object.freeze({
|
||||||
icons: {
|
icons: {
|
||||||
adult: {
|
adult: {
|
||||||
file: "icons/core/ico_notice_nsfw.png",
|
file: "icons/core/ico_notice_nsfw.png",
|
||||||
revision: 2
|
revision: 3
|
||||||
},
|
},
|
||||||
error: {
|
error: {
|
||||||
file: "icons/core/ico_notice_error.png",
|
file: "icons/core/ico_notice_error.png",
|
||||||
revision: 2
|
revision: 3
|
||||||
},
|
},
|
||||||
loading: {
|
loading: {
|
||||||
file: "icons/core/ico_notice_loading.gif",
|
file: "icons/core/ico_notice_loading.gif",
|
||||||
|
@ -146,7 +146,7 @@ const Statics = Object.freeze({
|
||||||
},
|
},
|
||||||
warning: {
|
warning: {
|
||||||
file: "icons/core/ico_notice_warning.png",
|
file: "icons/core/ico_notice_warning.png",
|
||||||
revision: 2
|
revision: 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue