fix: fix/archive
#56
3 changed files with 11 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
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 { getLocale, getLocalizations } from '../../utils/locales';
|
||||
import { getFilename } from '../../utils/misc';
|
||||
|
@ -46,7 +46,7 @@ export default {
|
|||
return interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('Blurple')
|
||||
.setColor(Colors.Blurple)
|
||||
.setTitle(loc.get('c_archive1'))
|
||||
.setDescription(loc.get('c_archive2')),
|
||||
],
|
||||
|
@ -94,7 +94,7 @@ export default {
|
|||
return interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('Blurple')
|
||||
.setColor(Colors.Blurple)
|
||||
.setTitle(loc.get('c_archive6'))
|
||||
.setDescription(
|
||||
loc.get('c_archive7')
|
||||
|
@ -109,7 +109,7 @@ export default {
|
|||
return interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('Blurple')
|
||||
.setColor(Colors.Blurple)
|
||||
.setTitle(loc.get('c_archive4')
|
||||
+ ' `'
|
||||
+ catToArchive.map(cat => cat?.name)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { SlashCommandBuilder } from '@discordjs/builders';
|
||||
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 { getFilename } from '../../utils/misc';
|
||||
import '../../modules/string';
|
||||
|
@ -62,7 +62,7 @@ export default {
|
|||
// Sends a list of commands sorted into categories
|
||||
return interaction.reply({ embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('Blurple')
|
||||
.setColor(Colors.Blurple)
|
||||
.setTitle(loc.get('c_help1'))
|
||||
.setDescription(loc.get('c_help2'))
|
||||
.addFields(fields),
|
||||
|
@ -82,7 +82,7 @@ export default {
|
|||
// Send information about the command
|
||||
return interaction.reply({ embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('Blurple')
|
||||
.setColor(Colors.Blurple)
|
||||
.setTitle('`/' + command.data.name + '`')
|
||||
.setDescription(
|
||||
// Loads the description
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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 { getLocale, getLocalizations } from '../../utils/locales';
|
||||
import { getFilename } from '../../utils/misc';
|
||||
|
@ -46,7 +46,7 @@ export default {
|
|||
return interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('Blurple')
|
||||
.setColor(Colors.Blurple)
|
||||
.setTitle(loc.get('c_prep1'))
|
||||
.setDescription(loc.get('c_prep2')),
|
||||
],
|
||||
|
@ -95,7 +95,7 @@ export default {
|
|||
parent: cat_to_prep_id[0],
|
||||
});
|
||||
|
||||
desc += info + loc.get('c_prep5') + '\n';
|
||||
desc += '`' + info + '` ' + loc.get('c_prep5') + '\n';
|
||||
}
|
||||
|
||||
if (desc == '') {
|
||||
|
@ -105,7 +105,7 @@ export default {
|
|||
return interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('Blurple')
|
||||
.setColor(Colors.Blurple)
|
||||
.setTitle(loc.get('c_prep4') + cat_to_prep_name)
|
||||
.setDescription(
|
||||
desc,
|
||||
|
|
Loading…
Reference in a new issue