#303 and other stuff

This commit is contained in:
Isaac
2022-08-13 23:58:41 +01:00
parent c64b18a397
commit 4c176d082f
10 changed files with 70 additions and 27 deletions

View File

@@ -10,21 +10,17 @@ module.exports = class CloseSlashCommand extends SlashCommand {
client.i18n.locales.forEach(l => (nameLocalizations[l] = client.i18n.getMessage(l, 'commands.slash.close.name')));
let opts = [
{
name: 'channel',
required: false,
type: ApplicationCommandOptionType.Channel,
},
{
name: 'number',
required: false,
type: ApplicationCommandOptionType.Integer,
},
{
name: 'reason',
required: false,
type: ApplicationCommandOptionType.String,
},
{
autocomplete: true,
name: 'ticket',
required: false,
type: ApplicationCommandOptionType.String,
},
{
name: 'time',
required: false,

View File

@@ -50,6 +50,5 @@ module.exports = class NewSlashCommand extends SlashCommand {
*/
async run(interaction) {
await useGuild(this.client, interaction, { referencesTicketId: interaction.options.getString('references', false) });
}
};