-
Notifications
You must be signed in to change notification settings - Fork 0
/
XMessages.js
36 lines (36 loc) · 1.07 KB
/
XMessages.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var messages = {
GetMessage(name) {
var index = this.Messages.findIndex(v => v.Name == name);
return index > -1 && this.Messages[index] || null;
},
SetMessage(name, newSettings) {
var index = this.Messages.find(v => v.Name == name);
if (!index) {
console.error("Message not found: " + name);
return;
}
},
Messages: [
{
Name: "InvalidDefault",
Title: "Invalid Default Name",
Description: "Couldn't find the default message in question",
Color: "DarkRed"
},
{
Name: "PermissionError",
Title: "Permissions NULL",
Description: "You do not have permission to execute this command",
Color: "DarkRed"
},
{
Name: "CommandError",
Title: "Command NULL",
Description: "This command doesn't exsist",
Color: "DarkRed"
},
]
};
exports.default = messages;