diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-12-26 22:23:45 +0000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-12-26 22:23:45 +0000 |
commit | 60e3641665cd5c91421782d481c25a89cb61c6be (patch) | |
tree | c900b2ff20c9606d707371d49df6a3c18b16673d | |
parent | 4990d33a22779b524ff6476bb05fcc21cad4eace (diff) | |
download | tanzanite-60e3641665cd5c91421782d481c25a89cb61c6be.tar.gz tanzanite-60e3641665cd5c91421782d481c25a89cb61c6be.tar.bz2 tanzanite-60e3641665cd5c91421782d481c25a89cb61c6be.zip |
Automatically format code
-rw-r--r-- | src/commands/info/userInfo.ts | 11 | ||||
-rw-r--r-- | src/lib/common/AutoMod.ts | 2 | ||||
-rw-r--r-- | src/lib/extensions/discord.js/BushGuildMember.ts | 4 | ||||
-rw-r--r-- | src/lib/utils/BushConstants.ts | 2 |
4 files changed, 6 insertions, 13 deletions
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index c62be93..98ead3d 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -1,11 +1,4 @@ -import { - BushCommand, - BushGuild, - BushGuildMember, - type BushMessage, - type BushSlashMessage, - type BushUser -} from '#lib'; +import { BushCommand, BushGuild, BushGuildMember, type BushMessage, type BushSlashMessage, type BushUser } from '#lib'; import { MessageEmbed, type Snowflake } from 'discord.js'; // TODO: Add bot information @@ -177,6 +170,6 @@ export default class UserInfoCommand extends BushCommand { if (perms.length) userEmbed.addField('ยป Important Perms', perms.join(' ')); if (emojis) userEmbed.setDescription(`\u200B${emojis.join(' ')}`); // zero width space - return userEmbed + return userEmbed; } } diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts index e5487c3..cc1bbbd 100644 --- a/src/lib/common/AutoMod.ts +++ b/src/lib/common/AutoMod.ts @@ -261,7 +261,7 @@ export class AutoMod { .addField('Message Content', `${await util.codeblock(this.message.content, 1024)}`) .setColor(color) .setTimestamp() - .setAuthor({name: this.message.author.tag, url: this.message.author.displayAvatarURL()}) + .setAuthor({ name: this.message.author.tag, url: this.message.author.displayAvatarURL() }) ], components: highestOffence.severity >= 2 diff --git a/src/lib/extensions/discord.js/BushGuildMember.ts b/src/lib/extensions/discord.js/BushGuildMember.ts index f6d5259..1908f12 100644 --- a/src/lib/extensions/discord.js/BushGuildMember.ts +++ b/src/lib/extensions/discord.js/BushGuildMember.ts @@ -420,7 +420,7 @@ export class BushGuildMember extends GuildMember { } /** - * Ban the user, create a modlog entry, create a punishment entry, and dm the user. + * Ban the user, create a modlog entry, create a punishment entry, and dm the user. * @param options Options for banning the user. * @returns A status message for banning the user. * @emits {@link BushClientEvents.bushBan} @@ -641,4 +641,4 @@ export type PartialBushGuildMember = Partialize< /** * @typedef {BushClientEvents} VSCodePleaseDontRemove - */
\ No newline at end of file + */ diff --git a/src/lib/utils/BushConstants.ts b/src/lib/utils/BushConstants.ts index 297a641..3327e8f 100644 --- a/src/lib/utils/BushConstants.ts +++ b/src/lib/utils/BushConstants.ts @@ -170,7 +170,7 @@ export class BushConstants { SEND_MESSAGES_IN_THREADS: { name: 'Send Messages In Threads', important: false }, START_EMBEDDED_ACTIVITIES: { name: 'Start Activities', important: false }, MODERATE_MEMBERS: { name: 'Moderate Members', important: true }, - MANAGE_EVENTS: { name: 'Manage Events', important: true }, + MANAGE_EVENTS: { name: 'Manage Events', important: true } }, // prettier-ignore |