mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-09 19:31:27 +03:00
#303 and other stuff
This commit is contained in:
@@ -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,
|
||||
|
@@ -50,6 +50,5 @@ module.exports = class NewSlashCommand extends SlashCommand {
|
||||
*/
|
||||
async run(interaction) {
|
||||
await useGuild(this.client, interaction, { referencesTicketId: interaction.options.getString('references', false) });
|
||||
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user