1
0
Fork 0
cloudservices/src/class/Command.ts

33 lines
649 B
TypeScript
Raw Normal View History

2019-10-14 23:32:37 -04:00
import { Message } from 'eris';
import Client from '../Client';
2019-10-14 18:02:04 -04:00
export default class Command {
name: string
2019-10-14 23:32:37 -04:00
2019-10-14 18:02:04 -04:00
description?: string
2019-10-14 23:32:37 -04:00
2019-10-14 18:02:04 -04:00
usage?: string
2019-10-14 23:32:37 -04:00
2019-10-14 18:02:04 -04:00
enabled: boolean
2019-10-14 23:32:37 -04:00
2019-10-14 18:02:04 -04:00
aliases?: string[]
2019-10-14 23:32:37 -04:00
2019-10-14 18:02:04 -04:00
client: Client
2019-10-14 23:37:04 -04:00
2019-10-14 23:32:37 -04:00
permissions?: { roles?: string[], users?: string[] }
2019-10-14 23:37:04 -04:00
2019-10-14 19:04:07 -04:00
guildOnly?: boolean
2019-10-14 23:37:04 -04:00
2019-10-15 14:03:40 -04:00
public run(message: Message, args: string[]) {} // eslint-disable-line
2019-10-14 23:37:04 -04:00
2019-10-14 18:02:04 -04:00
constructor(client: Client) {
2019-10-14 23:37:04 -04:00
this.name = 'None';
this.description = 'No description given';
this.usage = 'No usage given';
this.enabled = false;
this.aliases = [];
this.guildOnly = true;
this.client = client;
2019-10-14 18:02:04 -04:00
}
}