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/commands/server/roles.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/commands/server/roles.ts')
| -rw-r--r-- | src/commands/server/roles.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/commands/server/roles.ts b/src/commands/server/roles.ts index 8ec4a01..4ab14fe 100644 --- a/src/commands/server/roles.ts +++ b/src/commands/server/roles.ts @@ -1,10 +1,9 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random' +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; import { MessageEmbed } from 'discord.js'; -import tt from '../../utils/truncateText.js' +const tt = require('../../utils/truncateText.js') module.exports = class RolesServer extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'roles', aliases: [ @@ -36,6 +35,6 @@ module.exports = class RolesServer extends Command { .array() .join(', ') )) - msg.say(emb) + return msg.say(emb) } };
\ No newline at end of file |