#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

@@ -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;
}
}