diff options
| author | 8cy <[email protected]> | 2020-06-27 22:52:54 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-06-27 22:52:54 -0700 |
| commit | 80951013e391aab140800e4f386867e6c391553f (patch) | |
| tree | 3d7101237ef1cd8d6fe2a2fab751a2dc55ae7d84 /src/models/Command.ts | |
| parent | more config shit (diff) | |
| download | dep-core-80951013e391aab140800e4f386867e6c391553f.tar.xz dep-core-80951013e391aab140800e4f386867e6c391553f.zip | |
add ts defs so not a lot of errors left
- made .todo file for epic error tracking
Diffstat (limited to 'src/models/Command.ts')
| -rw-r--r-- | src/models/Command.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/models/Command.ts b/src/models/Command.ts index 9a304a8..b3fdea9 100644 --- a/src/models/Command.ts +++ b/src/models/Command.ts @@ -1,11 +1,14 @@ -import { Command } from 'discord.js-commando'; +import { Command, CommandoClient, CommandInfo } from 'discord.js-commando'; module.exports = class UwufierCommand extends Command { - constructor(client, info) { + credit: any; + constructor(client: CommandoClient, info: CommandInfo) { super(client, info); this.argsSingleQuotes = info.argsSingleQuotes || false; this.throttling = info.throttling || { usages: 1, duration: 2 }; + // TODO: + // @ts-ignore this.credit = info.credit || []; this.credit.push({ name: 'Sin', |