v3.3 push 3 (lots of small changes 😄)

This commit is contained in:
DJj123dj
2023-03-13 20:22:23 +01:00
parent ee248e86bc
commit 944032f690
34 changed files with 136 additions and 188 deletions
+4 -3
View File
@@ -48,12 +48,13 @@ exports.serverError = (message) => {
return x
}
/**@param {String[]} list */
exports.invalidIdChooseFromList = (list) => {
/**@param {String[]} list @param {String|undefined} message */
exports.invalidIdChooseFromList = (list,message) => {
const beforemsg = message ? message+"\n\n" : ""
var x = new embed()
.setColor(c.Red)
.setTitle(":x: "+l.errors.chooseFromListTitle)
.setDescription(l.errors.chooseFromListDescription+"\n`"+list.join("`\n`")+"`")
.setDescription(beforemsg+l.errors.chooseFromListDescription+"\n`"+list.join("`\n`")+"`")
return x
}