mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-04 09:21:25 +03:00
#303 and other stuff
This commit is contained in:
@@ -12,11 +12,8 @@ module.exports = class Commands extends StdinCommand {
|
||||
switch (args[0]) {
|
||||
case 'publish': {
|
||||
this.client.commands.publish()
|
||||
.then(commands => {
|
||||
if (!commands) return console.log('None published');
|
||||
console.log('Published %d commands', commands.size);
|
||||
})
|
||||
.catch(console.error);
|
||||
.then(commands => this.client.log.success('Published %d commands', commands?.size))
|
||||
.catch(this.client.log.error);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user