aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/guildInfo.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-03 23:45:16 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-03 23:45:16 -0500
commit3c56bbcf795725b65192409b3211d92c097f8c82 (patch)
tree472dafca0224e61aeaffcf59ea176c534b8c3930 /src/commands/info/guildInfo.ts
parent2e02220de1d1de24375db11f22b4c6626c930a28 (diff)
downloadtanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.tar.gz
tanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.tar.bz2
tanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.zip
refactor: preemptively switch addField to addFields
Diffstat (limited to 'src/commands/info/guildInfo.ts')
-rw-r--r--src/commands/info/guildInfo.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts
index ed8a973..7f82e92 100644
--- a/src/commands/info/guildInfo.ts
+++ b/src/commands/info/guildInfo.ts
@@ -155,7 +155,7 @@ export default class GuildInfoCommand extends BushCommand {
);
}
- embed.addField({ name: '» About', value: guildAbout.join('\n') });
+ embed.addFields({ name: '» About', value: guildAbout.join('\n') });
}
private generateStatsField(embed: Embed, guild: Guild | GuildPreview) {
@@ -191,7 +191,7 @@ export default class GuildInfoCommand extends BushCommand {
`**Stickers:** ${guild.stickers.cache.size?.toLocaleString() ?? 0} / ${StickerTierMap[guild.premiumTier]}`
);
- embed.addField({ name: '» Stats', value: guildStats.join('\n') });
+ embed.addFields({ name: '» Stats', value: guildStats.join('\n') });
}
private generateSecurityField(embed: Embed, guild: Guild | GuildPreview) {
@@ -206,7 +206,7 @@ export default class GuildInfoCommand extends BushCommand {
`**2FA Required:** ${guild.mfaLevel === GuildMFALevel.Elevated ? 'True' : 'False'}`
);
- embed.addField({ name: '» Security', value: guildSecurity.join('\n') });
+ embed.addFields({ name: '» Security', value: guildSecurity.join('\n') });
}
}