From 5b95610338228e08987e6647f2d8738392f97f7d Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 16 Oct 2022 14:07:10 +0100 Subject: [PATCH] rename `/transfer` back to `/move` --- src/commands/slash/{transfer.js => move.js} | 10 +++++----- src/i18n/en-GB.yml | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/commands/slash/{transfer.js => move.js} (78%) diff --git a/src/commands/slash/transfer.js b/src/commands/slash/move.js similarity index 78% rename from src/commands/slash/transfer.js rename to src/commands/slash/move.js index 3896f0e..e0c8b4f 100644 --- a/src/commands/slash/transfer.js +++ b/src/commands/slash/move.js @@ -1,13 +1,13 @@ const { SlashCommand } = require('@eartharoid/dbf'); const { ApplicationCommandOptionType } = require('discord.js'); -module.exports = class TransferSlashCommand extends SlashCommand { +module.exports = class MoveSlashCommand extends SlashCommand { constructor(client, options) { 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 = {}; - 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 = [ { @@ -19,10 +19,10 @@ module.exports = class TransferSlashCommand extends SlashCommand { ]; opts = opts.map(o => { 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 = {}; - 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 { ...o, diff --git a/src/i18n/en-GB.yml b/src/i18n/en-GB.yml index ceddfb3..937c530 100644 --- a/src/i18n/en-GB.yml +++ b/src/i18n/en-GB.yml @@ -167,12 +167,12 @@ commands: ticket: description: The number of the ticket to get the transcript of name: ticket - transfer: - description: Transfer a ticket to another category - name: transfer + move: + description: move a ticket to another category + name: move options: category: - description: The category to transfer the ticket to + description: The category to move the ticket to name: category user: create: