Spaces:
Runtime error
Runtime error
Update NewBotStyle.js
Browse files- NewBotStyle.js +28 -8
NewBotStyle.js
CHANGED
|
@@ -1,11 +1,31 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
const UI = {
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
};
|
| 9 |
-
module.exports = { UI };
|
| 10 |
|
| 11 |
-
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* NewBotStyle.js - Branding and UI Definitions
|
| 3 |
+
* Contains the premium design tokens and layout logic for the Node.js port.
|
| 4 |
+
*/
|
| 5 |
+
const { EmbedBuilder, Colors } = require('discord.js');
|
| 6 |
+
|
| 7 |
const UI = {
|
| 8 |
+
colors: {
|
| 9 |
+
primary: 0x5865F2,
|
| 10 |
+
success: 0x57F287,
|
| 11 |
+
danger: 0xED4245,
|
| 12 |
+
neutral: 0x2B2D31
|
| 13 |
+
},
|
| 14 |
+
|
| 15 |
+
icons: {
|
| 16 |
+
success: "✅",
|
| 17 |
+
error: "❌",
|
| 18 |
+
loading: "⏳",
|
| 19 |
+
match: "⚽"
|
| 20 |
+
},
|
| 21 |
+
|
| 22 |
+
createEmbed(title, description, color = 0x5865F2) {
|
| 23 |
+
return new EmbedBuilder()
|
| 24 |
+
.setTitle(title)
|
| 25 |
+
.setDescription(description)
|
| 26 |
+
.setColor(color)
|
| 27 |
+
.setTimestamp();
|
| 28 |
+
}
|
| 29 |
};
|
|
|
|
| 30 |
|
| 31 |
+
module.exports = { UI };
|