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

29 lines
630 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:32:37 -04:00
permissions?: { roles?: string[], users?: string[] }
2019-10-14 19:04:07 -04:00
guildOnly?: boolean
2019-10-14 18:02:04 -04:00
public run (message: Message, args: string[]) {}
constructor(client: Client) {
this.name = 'None'
this.description = 'No description given'
this.usage = 'No usage given'
this.enabled = false
this.aliases = []
2019-10-14 19:04:07 -04:00
this.guildOnly = true
2019-10-14 18:02:04 -04:00
this.client = client
}
}