aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/servers.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-28 12:43:42 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-28 12:43:42 -0400
commit31d339b46b9fc11e50a0cdbf53e937e575531efd (patch)
tree05148c87a0be4992ad41b1829f17ffb6b75f7a3c /src/commands/dev/servers.ts
parente37904bdf74b2c21d97d4ceb89a2a38a74b08919 (diff)
downloadtanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.gz
tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.tar.bz2
tanzanite-31d339b46b9fc11e50a0cdbf53e937e575531efd.zip
feat: custom stripIndent
Diffstat (limited to 'src/commands/dev/servers.ts')
-rw-r--r--src/commands/dev/servers.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/dev/servers.ts b/src/commands/dev/servers.ts
index 72fc7d7..0701158 100644
--- a/src/commands/dev/servers.ts
+++ b/src/commands/dev/servers.ts
@@ -1,4 +1,5 @@
import { BushCommand, ButtonPaginator, type BushMessage, type BushSlashMessage } from '#lib';
+import { stripIndent } from '#tags';
import type { APIEmbed } from 'discord-api-types/v10';
import type { Guild } from 'discord.js';
@@ -25,11 +26,10 @@ export default class ServersCommand extends BushCommand {
color: util.colors.default,
fields: chunk.map((guild) => ({
name: util.format.input(guild.name),
- value: [
- `**ID:** ${guild.id}`,
- `**Owner:** ${client.users.cache.has(guild.ownerId) ? client.users.cache.get(guild.ownerId)!.tag : guild.ownerId}`,
- `**Members:** ${guild.memberCount.toLocaleString()}`
- ].join('\n')
+ value: stripIndent`
+ **ID:** ${guild.id}
+ **Owner:** ${client.users.cache.has(guild.ownerId) ? client.users.cache.get(guild.ownerId)!.tag : guild.ownerId}
+ **Members:** ${guild.memberCount.toLocaleString()}`
}))
} as APIEmbed;
});