use builtins colors and fix format
This commit is contained in:
parent
63d8d74995
commit
4050a63fbb
3 changed files with 11 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { SlashCommandBuilder } from '@discordjs/builders';
|
import { SlashCommandBuilder } from '@discordjs/builders';
|
||||||
import { ChannelType, Client, CommandInteraction, EmbedBuilder, NonThreadGuildBasedChannel } from 'discord.js';
|
import { ChannelType, Client, Colors, CommandInteraction, EmbedBuilder, NonThreadGuildBasedChannel } from 'discord.js';
|
||||||
import '../../modules/string';
|
import '../../modules/string';
|
||||||
import { getLocale, getLocalizations } from '../../utils/locales';
|
import { getLocale, getLocalizations } from '../../utils/locales';
|
||||||
import { getFilename } from '../../utils/misc';
|
import { getFilename } from '../../utils/misc';
|
||||||
|
@ -46,7 +46,7 @@ export default {
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('Blurple')
|
.setColor(Colors.Blurple)
|
||||||
.setTitle(loc.get('c_archive1'))
|
.setTitle(loc.get('c_archive1'))
|
||||||
.setDescription(loc.get('c_archive2')),
|
.setDescription(loc.get('c_archive2')),
|
||||||
],
|
],
|
||||||
|
@ -94,7 +94,7 @@ export default {
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('Blurple')
|
.setColor(Colors.Blurple)
|
||||||
.setTitle(loc.get('c_archive6'))
|
.setTitle(loc.get('c_archive6'))
|
||||||
.setDescription(
|
.setDescription(
|
||||||
loc.get('c_archive7')
|
loc.get('c_archive7')
|
||||||
|
@ -109,7 +109,7 @@ export default {
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('Blurple')
|
.setColor(Colors.Blurple)
|
||||||
.setTitle(loc.get('c_archive4')
|
.setTitle(loc.get('c_archive4')
|
||||||
+ ' `'
|
+ ' `'
|
||||||
+ catToArchive.map(cat => cat?.name)
|
+ catToArchive.map(cat => cat?.name)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { SlashCommandBuilder } from '@discordjs/builders';
|
import { SlashCommandBuilder } from '@discordjs/builders';
|
||||||
import { Locale } from 'discord-api-types/v9';
|
import { Locale } from 'discord-api-types/v9';
|
||||||
import { Client, ChatInputCommandInteraction, EmbedBuilder } from 'discord.js';
|
import { Client, ChatInputCommandInteraction, EmbedBuilder, Colors } from 'discord.js';
|
||||||
import { getLocale, getLocalizations } from '../../utils/locales';
|
import { getLocale, getLocalizations } from '../../utils/locales';
|
||||||
import { getFilename } from '../../utils/misc';
|
import { getFilename } from '../../utils/misc';
|
||||||
import '../../modules/string';
|
import '../../modules/string';
|
||||||
|
@ -62,7 +62,7 @@ export default {
|
||||||
// Sends a list of commands sorted into categories
|
// Sends a list of commands sorted into categories
|
||||||
return interaction.reply({ embeds: [
|
return interaction.reply({ embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('Blurple')
|
.setColor(Colors.Blurple)
|
||||||
.setTitle(loc.get('c_help1'))
|
.setTitle(loc.get('c_help1'))
|
||||||
.setDescription(loc.get('c_help2'))
|
.setDescription(loc.get('c_help2'))
|
||||||
.addFields(fields),
|
.addFields(fields),
|
||||||
|
@ -82,7 +82,7 @@ export default {
|
||||||
// Send information about the command
|
// Send information about the command
|
||||||
return interaction.reply({ embeds: [
|
return interaction.reply({ embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('Blurple')
|
.setColor(Colors.Blurple)
|
||||||
.setTitle('`/' + command.data.name + '`')
|
.setTitle('`/' + command.data.name + '`')
|
||||||
.setDescription(
|
.setDescription(
|
||||||
// Loads the description
|
// Loads the description
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { SlashCommandBuilder } from '@discordjs/builders';
|
import { SlashCommandBuilder } from '@discordjs/builders';
|
||||||
import { ChannelType, Client, CommandInteraction, EmbedBuilder } from 'discord.js';
|
import { ChannelType, Client, Colors, CommandInteraction, EmbedBuilder } from 'discord.js';
|
||||||
import '../../modules/string';
|
import '../../modules/string';
|
||||||
import { getLocale, getLocalizations } from '../../utils/locales';
|
import { getLocale, getLocalizations } from '../../utils/locales';
|
||||||
import { getFilename } from '../../utils/misc';
|
import { getFilename } from '../../utils/misc';
|
||||||
|
@ -46,7 +46,7 @@ export default {
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('Blurple')
|
.setColor(Colors.Blurple)
|
||||||
.setTitle(loc.get('c_prep1'))
|
.setTitle(loc.get('c_prep1'))
|
||||||
.setDescription(loc.get('c_prep2')),
|
.setDescription(loc.get('c_prep2')),
|
||||||
],
|
],
|
||||||
|
@ -95,7 +95,7 @@ export default {
|
||||||
parent: cat_to_prep_id[0],
|
parent: cat_to_prep_id[0],
|
||||||
});
|
});
|
||||||
|
|
||||||
desc += info + loc.get('c_prep5') + '\n';
|
desc += '`' + info + '` ' + loc.get('c_prep5') + '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (desc == '') {
|
if (desc == '') {
|
||||||
|
@ -105,7 +105,7 @@ export default {
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('Blurple')
|
.setColor(Colors.Blurple)
|
||||||
.setTitle(loc.get('c_prep4') + cat_to_prep_name)
|
.setTitle(loc.get('c_prep4') + cat_to_prep_name)
|
||||||
.setDescription(
|
.setDescription(
|
||||||
desc,
|
desc,
|
||||||
|
|
Loading…
Reference in a new issue