mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
rename /transfer
back to /move
This commit is contained in:
parent
33d61869d8
commit
5b95610338
@ -1,13 +1,13 @@
|
|||||||
const { SlashCommand } = require('@eartharoid/dbf');
|
const { SlashCommand } = require('@eartharoid/dbf');
|
||||||
const { ApplicationCommandOptionType } = require('discord.js');
|
const { ApplicationCommandOptionType } = require('discord.js');
|
||||||
|
|
||||||
module.exports = class TransferSlashCommand extends SlashCommand {
|
module.exports = class MoveSlashCommand extends SlashCommand {
|
||||||
constructor(client, options) {
|
constructor(client, options) {
|
||||||
const descriptionLocalizations = {};
|
const descriptionLocalizations = {};
|
||||||
client.i18n.locales.forEach(l => (descriptionLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.transfer.description')));
|
client.i18n.locales.forEach(l => (descriptionLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.move.description')));
|
||||||
|
|
||||||
const nameLocalizations = {};
|
const nameLocalizations = {};
|
||||||
client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.transfer.name')));
|
client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.move.name')));
|
||||||
|
|
||||||
let opts = [
|
let opts = [
|
||||||
{
|
{
|
||||||
@ -19,10 +19,10 @@ module.exports = class TransferSlashCommand extends SlashCommand {
|
|||||||
];
|
];
|
||||||
opts = opts.map(o => {
|
opts = opts.map(o => {
|
||||||
const descriptionLocalizations = {};
|
const descriptionLocalizations = {};
|
||||||
client.i18n.locales.forEach(l => (descriptionLocalizations[l] = client.i18n.getMessage(l, `commands.slash.transfer.options.${o.name}.description`)));
|
client.i18n.locales.forEach(l => (descriptionLocalizations[l] = client.i18n.getMessage(l, `commands.slash.move.options.${o.name}.description`)));
|
||||||
|
|
||||||
const nameLocalizations = {};
|
const nameLocalizations = {};
|
||||||
client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, `commands.slash.transfer.options.${o.name}.name`)));
|
client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, `commands.slash.move.options.${o.name}.name`)));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...o,
|
...o,
|
@ -167,12 +167,12 @@ commands:
|
|||||||
ticket:
|
ticket:
|
||||||
description: The number of the ticket to get the transcript of
|
description: The number of the ticket to get the transcript of
|
||||||
name: ticket
|
name: ticket
|
||||||
transfer:
|
move:
|
||||||
description: Transfer a ticket to another category
|
description: move a ticket to another category
|
||||||
name: transfer
|
name: move
|
||||||
options:
|
options:
|
||||||
category:
|
category:
|
||||||
description: The category to transfer the ticket to
|
description: The category to move the ticket to
|
||||||
name: category
|
name: category
|
||||||
user:
|
user:
|
||||||
create:
|
create:
|
||||||
|
Loading…
Reference in New Issue
Block a user