diff options
| author | 8cy <[email protected]> | 2020-07-19 20:58:24 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-19 20:58:24 -0700 |
| commit | 67bbf08117736f264d0a154ba57747b9f4d24f0f (patch) | |
| tree | 1aa47455073bb65d22ea928e6e25e14f1a7a678c /src/commands | |
| parent | add vanessa (diff) | |
| download | dep-core-67bbf08117736f264d0a154ba57747b9f4d24f0f.tar.xz dep-core-67bbf08117736f264d0a154ba57747b9f4d24f0f.zip | |
feat: genservers print server owner as well
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/bot/generateservers.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/bot/generateservers.ts b/src/commands/bot/generateservers.ts index d272b4f..50c65e2 100644 --- a/src/commands/bot/generateservers.ts +++ b/src/commands/bot/generateservers.ts @@ -1,7 +1,7 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; module.exports = class GenerateServersBot extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'generateservers', aliases: [ @@ -28,7 +28,7 @@ module.exports = class GenerateServersBot extends Command { const list = this.client.guilds.cache .map(g => { const servers = g.name - return `* ** ${servers}:** ${g.id}` + return `* ** ${servers}:** ${g.id} - ${g.owner?.user.tag}` }) const text = `Total: ${this.client.guilds.cache.size}\n\n### Servers\n\n${list.join('\n')}` return msg.reply({ files: [{ attachment: Buffer.from(text), name: 'servers.txt' }] }) |