xernerx 2.6.9 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/styles/styles.css
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
body {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
font-family: "Cascadia Code";
|
|
3
|
+
color: white;
|
|
4
|
+
background: #424549;
|
|
5
|
+
margin: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.top-bar {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: baseline;
|
|
12
|
+
border: 2px solid red;
|
|
13
|
+
border-radius: 0.5rem;
|
|
14
|
+
gap: 1rem;
|
|
15
|
+
padding: 0.5rem;
|
|
16
|
+
margin: 10;
|
|
17
|
+
position: sticky;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.link {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
background: none;
|
|
22
|
+
border: none;
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
color: white;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
font-family: inherit;
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
padding: 0;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.dropdown.active > .link,
|
|
33
33
|
.link:hover {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
color: black;
|
|
35
|
+
background: red;
|
|
36
|
+
border-radius: 0.5rem;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.dropdown {
|
|
40
|
-
|
|
40
|
+
position: relative;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.dropdown-menu {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
position: absolute;
|
|
45
|
+
left: 0;
|
|
46
|
+
top: calc(100% + 0.25rem);
|
|
47
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
48
|
+
padding: 0.75rem;
|
|
49
|
+
border-radius: 0.5rem;
|
|
50
|
+
box-shadow: 0 2px 5px, 0 rgba(0, 0, 0, 0.1);
|
|
51
|
+
opacity: 0;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
transform: translateY(-10px);
|
|
54
|
+
transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.dropdown.active > .link + .dropdown-menu {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
opacity: 1;
|
|
59
|
+
transform: translateY(0);
|
|
60
|
+
pointer-events: auto;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.side-bar {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
64
|
+
list-style-type: none;
|
|
65
|
+
border: 2px solid red;
|
|
66
|
+
border-radius: 0.5rem;
|
|
67
|
+
margin: 10px;
|
|
68
|
+
padding: 10;
|
|
69
|
+
width: 20%;
|
|
70
|
+
overflow: auto;
|
|
71
|
+
height: 85%;
|
|
72
|
+
text-align: left;
|
|
73
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
74
|
+
top: 6.4%;
|
|
75
|
+
position: fixed;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.page {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
margin: 0;
|
|
80
|
+
right: 0;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
#page {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
position: absolute;
|
|
85
|
+
right: 0;
|
|
86
|
+
width: 75vmax;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.component {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
border-radius: 0.5rem;
|
|
91
|
+
border: 2px solid red;
|
|
92
|
+
padding: 10;
|
|
93
|
+
margin: 10px;
|
|
94
|
+
background-color: #53565a;
|
|
95
|
+
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
|
|
96
|
+
right: 0;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.index {
|
|
100
|
-
|
|
100
|
+
align-items: left;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
table {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
border-collapse: collapse;
|
|
105
|
+
display: block;
|
|
106
|
+
overflow-x: auto;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
width: 100%;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
tr,
|
|
112
112
|
td {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
align-items: center;
|
|
114
|
+
width: 100%;
|
|
115
|
+
padding: 10;
|
|
116
|
+
border: 2px solid red;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
#table-header {
|
|
120
|
-
|
|
120
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.button {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
124
|
+
font-family: Arial;
|
|
125
|
+
color: black;
|
|
126
|
+
border-radius: 0.5rem;
|
|
127
|
+
background-color: red; /* Green */
|
|
128
|
+
border: none;
|
|
129
|
+
padding: 15px 32px;
|
|
130
|
+
text-align: center;
|
|
131
|
+
text-decoration: none;
|
|
132
|
+
display: inline-block;
|
|
133
|
+
font-size: 20;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.select {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
137
|
+
background: none;
|
|
138
|
+
border: none;
|
|
139
|
+
text-decoration: none;
|
|
140
|
+
color: white;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
font-family: inherit;
|
|
143
|
+
font-size: inherit;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
padding: 0;
|
|
146
|
+
border: 2px solid red;
|
|
147
|
+
width: 100%;
|
|
148
|
+
border-radius: 0.5rem;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.select:hover {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
background-color: none;
|
|
153
|
+
background: none;
|
|
154
|
+
text-decoration: none;
|
|
155
155
|
}
|
package/models/Client.js
CHANGED
|
@@ -17,6 +17,7 @@ class Client extends Discord.Client {
|
|
|
17
17
|
guildId: s.string.default(undefined),
|
|
18
18
|
global: s.boolean.default(false),
|
|
19
19
|
prefix: s.array(s.string).default([]),
|
|
20
|
+
mentionPrefix: s.boolean.optional,
|
|
20
21
|
ownerId: s.array(s.string).default([]),
|
|
21
22
|
ignoreOwner: s.boolean.default(false),
|
|
22
23
|
defaultCooldown: s.number.default(0),
|
|
@@ -39,13 +39,15 @@ class BuildInMessageEvent extends Event {
|
|
|
39
39
|
};
|
|
40
40
|
})
|
|
41
41
|
|
|
42
|
-
if (message?.client?.settings?.prefix?.length <= 0) return;
|
|
42
|
+
if (message?.client?.settings?.prefix?.length <= 0 && !message.client.settings.mentionPrefix) return;
|
|
43
43
|
|
|
44
44
|
commands.filter(c => !c.regex).map(async command => {
|
|
45
45
|
command?.prefix?.map(prefix => {
|
|
46
46
|
this.commandCheck(message, prefix, command);
|
|
47
47
|
})
|
|
48
48
|
|
|
49
|
+
if (message.client.settings.mentionPrefix && !message.client.settings.prefix.includes(`<@${message.client.user.id}>`)) message.client.settings.prefix.push(`<@${message.client.user.id}>`)
|
|
50
|
+
|
|
49
51
|
message.client.settings.prefix.map(prefix => {
|
|
50
52
|
this.commandCheck(message, prefix, command);
|
|
51
53
|
});
|
|
@@ -116,62 +116,59 @@ module.exports = new class Functions {
|
|
|
116
116
|
for (const commands of Object.values(interaction.client.commands)) {
|
|
117
117
|
let commandInfo = {};
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
const command = commands.get(cmd);
|
|
119
|
+
const command = commands.find(command => command?.data?.name === cmd.toLowerCase() || command?.name === cmd.toLowerCase() || command?.id == cmd.toLowerCase());
|
|
121
120
|
|
|
121
|
+
if (command) {
|
|
122
122
|
if (command?.data?.options?.length > 0) {
|
|
123
123
|
command?.data?.options?.map(option => {
|
|
124
124
|
if (!option?.type) {
|
|
125
125
|
if (option?.options?.length > 0) {
|
|
126
126
|
option?.options?.map(opt => {
|
|
127
127
|
if (!opt.type) {
|
|
128
|
-
commandInfo = {
|
|
128
|
+
cmds.push(commandInfo = {
|
|
129
129
|
name: command?.data?.name + " " + option?.name + " " + opt?.name,
|
|
130
130
|
description: opt.description,
|
|
131
131
|
category: command.category
|
|
132
|
-
}
|
|
132
|
+
})
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
else {
|
|
136
|
-
commandInfo = {
|
|
136
|
+
cmds.push(commandInfo = {
|
|
137
137
|
name: command?.data?.name + " " + option?.name,
|
|
138
138
|
description: option?.description,
|
|
139
139
|
category: command.category
|
|
140
|
-
}
|
|
140
|
+
})
|
|
141
141
|
}
|
|
142
142
|
})
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
else {
|
|
146
|
-
commandInfo = {
|
|
146
|
+
cmds.push(commandInfo = {
|
|
147
147
|
name: command?.data?.name + " " + option?.name,
|
|
148
148
|
description: option?.description,
|
|
149
149
|
category: command.category
|
|
150
|
-
}
|
|
150
|
+
})
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
else {
|
|
155
|
-
commandInfo = {
|
|
155
|
+
cmds.push(commandInfo = {
|
|
156
156
|
name: command?.data?.name || command?.name || command?.id,
|
|
157
157
|
description: command?.data?.description || command?.description,
|
|
158
158
|
category: command.category
|
|
159
|
-
}
|
|
159
|
+
})
|
|
160
160
|
}
|
|
161
161
|
})
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
else {
|
|
165
|
-
commandInfo = {
|
|
165
|
+
cmds.push(commandInfo = {
|
|
166
166
|
name: command?.data?.name || command?.name || command?.id,
|
|
167
167
|
description: command?.data?.description || command?.description,
|
|
168
168
|
category: command.category
|
|
169
|
-
}
|
|
169
|
+
})
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
cmds.push(commandInfo);
|
|
173
171
|
}
|
|
174
|
-
|
|
175
172
|
}
|
|
176
173
|
return cmds;
|
|
177
174
|
}
|