cloudservices/src/commands/setlimit.ts

25 lines
781 B
TypeScript
Raw Normal View History

2020-05-02 02:34:52 -04:00
import { Message } from 'eris';
import { Command } from '../class';
import { Client } from '..';
2020-05-02 02:47:04 -04:00
import SetLimit_RAM from './setlimit_ram';
2020-05-02 02:34:52 -04:00
export default class SetLimit extends Command {
constructor(client: Client) {
super(client);
this.name = 'setlimit';
this.description = 'Sets resource limits for the various tiers';
this.usage = `Run ${this.client.config.prefix}${this.name} [subcommand] for usage information`;
this.permissions = { roles: ['662163685439045632'] };
2020-05-02 02:47:04 -04:00
this.subcmds = [SetLimit_RAM];
2020-05-02 02:34:52 -04:00
this.enabled = true;
}
public async run(message: Message) {
try {
return this.client.commands.get('help').run(message, [this.name]);
} catch (error) {
return this.client.util.handleError(error, message, this);
}
}
}