From 0ecad260c69fffa751fb5d245e0e4f804191970b Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 30 Sep 2021 18:40:52 -0400 Subject: okay jani --- src/commands/info/userInfo.ts | 8 ++++---- src/commands/leveling/leaderboard.ts | 4 ++-- src/commands/utilities/suicide.ts | 2 +- src/lib/extensions/discord-akairo/BushCommand.ts | 7 +++++++ src/listeners/commands/commandMissingPermissions.ts | 6 +++--- 5 files changed, 17 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index 98ef3ae..b01c268 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -96,10 +96,10 @@ export default class UserInfoCommand extends BushCommand { const generalInfo = [ `**Mention:** <@${user.id}>`, `**ID:** ${user.id}`, - `**Created: **${createdAt} (${createdAtDelta} ago)` + `**Created:** ${createdAt} (${createdAtDelta} ago)` ]; if (user.accentColor !== null) generalInfo.push(`**Accent Color:** ${user.hexAccentColor}`); - if (user.banner) generalInfo.push(`**Banner**: [link](${user.bannerURL({ dynamic: true, format: 'png', size: 4096 })})`); + if (user.banner) generalInfo.push(`**Banner:** [link](${user.bannerURL({ dynamic: true, format: 'png', size: 4096 })})`); const pronouns = await util.getPronounsOf(user); if (pronouns) generalInfo.push(`**Pronouns:** ${pronouns}`); @@ -109,7 +109,7 @@ export default class UserInfoCommand extends BushCommand { const serverUserInfo = []; if (joinedAt) serverUserInfo.push( - `**${message.guild!.ownerId == user.id ? 'Created Server' : 'Joined'}: ** ${joinedAt} (${joinedAtDelta} ago)` + `**${message.guild!.ownerId == user.id ? 'Created Server' : 'Joined'}:** ${joinedAt} (${joinedAtDelta} ago)` ); if (premiumSince) serverUserInfo.push(`**Boosting Since:** ${premiumSince} (${premiumSinceDelta} ago)`); if (member?.displayHexColor) serverUserInfo.push(`**Display Color:** ${member.displayHexColor}`); @@ -120,7 +120,7 @@ export default class UserInfoCommand extends BushCommand { message.guild?.id == client.consts.mappings.guilds.bush ) serverUserInfo.push(`**General Deletions:** ⅓`); - if (member?.nickname) serverUserInfo.push(`**Nickname** ${member?.nickname}`); + if (member?.nickname) serverUserInfo.push(`**Nickname:** ${member?.nickname}`); if (serverUserInfo.length) userEmbed.addField('» Server Info', serverUserInfo.join('\n')).setColor(member?.displayColor ?? util.colors.default); diff --git a/src/commands/leveling/leaderboard.ts b/src/commands/leveling/leaderboard.ts index 4fb1765..432fc60 100644 --- a/src/commands/leveling/leaderboard.ts +++ b/src/commands/leveling/leaderboard.ts @@ -55,10 +55,10 @@ export default class LeaderboardCommand extends BushCommand { ); const ranks = (await Level.findAll({ where: { guild: message.guild.id } })).sort((a, b) => b.xp - a.xp); - const mapedRanks = ranks.map( + const mappedRanks = ranks.map( (val, index) => `\`${index + 1}\` <@${val.user}> - Level ${val.level} (${val.xp.toLocaleString()} xp)` ); - const chunked = util.chunk(mapedRanks, 25); + const chunked = util.chunk(mappedRanks, 25); const embeds = chunked.map((c) => new MessageEmbed().setTitle(`${message.guild!.name}'s Leaderboard`).setDescription(c.join('\n')) ); diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts index a05cdaa..58119ef 100644 --- a/src/commands/utilities/suicide.ts +++ b/src/commands/utilities/suicide.ts @@ -33,7 +33,7 @@ export default class TemplateCommand extends BushCommand { **Text: HOME** to 741741 https://suicidepreventionlifeline.org/chat/ -Outside the U.S: Find a supportive resource on [this Wikipedia list of worldwide crisis hotlines](https://en.wikipedia.org/wiki/List_of_suicide_crisis_lines)` +**Outside the U.S**: Find a supportive resource on [this Wikipedia list of worldwide crisis hotlines](https://en.wikipedia.org/wiki/List_of_suicide_crisis_lines)` ) .addField( '**More Support**', diff --git a/src/lib/extensions/discord-akairo/BushCommand.ts b/src/lib/extensions/discord-akairo/BushCommand.ts index 073221d..548f921 100644 --- a/src/lib/extensions/discord-akairo/BushCommand.ts +++ b/src/lib/extensions/discord-akairo/BushCommand.ts @@ -139,8 +139,11 @@ export interface CustomBushArgumentOptions extends BaseBushArgumentOptions { export type BushMissingPermissionSupplier = (message: BushMessage | BushSlashMessage) => Promise | any; export interface BushCommandOptions extends Omit { + /** Whether the command is hidden from the help command. */ hidden?: boolean; + /** The channels the command is limited to run in. */ restrictedChannels?: Snowflake[]; + /** The guilds the command is limited to run in. */ restrictedGuilds?: Snowflake[]; description: { content: string; @@ -149,9 +152,13 @@ export interface BushCommandOptions extends Omit