mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33: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{
|
||||
let u;
|
||||
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)
|
||||
u = user.user
|
||||
if(!u) return editOrReply(context, createEmbed("warning", context, "No users found."))
|
||||
|
|
|
@ -118,11 +118,11 @@ const Statics = Object.freeze({
|
|||
icons: {
|
||||
adult: {
|
||||
file: "icons/core/ico_notice_nsfw.png",
|
||||
revision: 2
|
||||
revision: 3
|
||||
},
|
||||
error: {
|
||||
file: "icons/core/ico_notice_error.png",
|
||||
revision: 2
|
||||
revision: 3
|
||||
},
|
||||
loading: {
|
||||
file: "icons/core/ico_notice_loading.gif",
|
||||
|
@ -146,7 +146,7 @@ const Statics = Object.freeze({
|
|||
},
|
||||
warning: {
|
||||
file: "icons/core/ico_notice_warning.png",
|
||||
revision: 2
|
||||
revision: 3
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue