diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:08:09 -0500 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:08:09 -0500 |
| commit | d5d5fd6f77f2d778ab099d52f1acaad762712822 (patch) | |
| tree | ababfba81c28c102b932e2713c1614260a424285 /src/commands/info | |
| parent | e5bc336f9586b1f5515be3f1d239d2194489e9c5 (diff) | |
| download | tanzanite-d5d5fd6f77f2d778ab099d52f1acaad762712822.tar.gz tanzanite-d5d5fd6f77f2d778ab099d52f1acaad762712822.tar.bz2 tanzanite-d5d5fd6f77f2d778ab099d52f1acaad762712822.zip | |
explicit member accessibility & jsdocs & typings
Diffstat (limited to 'src/commands/info')
| -rw-r--r-- | src/commands/info/avatar.ts | 4 | ||||
| -rw-r--r-- | src/commands/info/icon.ts | 4 | ||||
| -rw-r--r-- | src/commands/info/pronouns.ts | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/info/avatar.ts b/src/commands/info/avatar.ts index 0ea9179..6b4afa1 100644 --- a/src/commands/info/avatar.ts +++ b/src/commands/info/avatar.ts @@ -2,7 +2,7 @@ import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage } fr import { ApplicationCommandOptionType, Embed, GuildMember, PermissionFlagsBits } from 'discord.js'; export default class AvatarCommand extends BushCommand { - constructor() { + public constructor() { super('avatar', { aliases: ['avatar', 'av'], category: 'info', @@ -27,7 +27,7 @@ export default class AvatarCommand extends BushCommand { }); } - override async exec(message: BushMessage | BushSlashMessage, args: { user: ArgType<'member'> | ArgType<'globalUser'> }) { + public override async exec(message: BushMessage | BushSlashMessage, args: { user: ArgType<'member'> | ArgType<'globalUser'> }) { const params: { size: 2048; extension: 'png'; dynamic: true } = { size: 2048, extension: 'png', dynamic: true }; const defaultAvatar = `https://cdn.discordapp.com/embed/avatars/${Math.ceil(Math.random() * 6) - 1}.png`; diff --git a/src/commands/info/icon.ts b/src/commands/info/icon.ts index b40b814..2b5b8fb 100644 --- a/src/commands/info/icon.ts +++ b/src/commands/info/icon.ts @@ -2,7 +2,7 @@ import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; import { Embed, PermissionFlagsBits } from 'discord.js'; export default class IconCommand extends BushCommand { - constructor() { + public constructor() { super('icon', { aliases: ['icon', 'guildavatar', 'severicon', 'guildicon'], category: 'info', @@ -16,7 +16,7 @@ export default class IconCommand extends BushCommand { }); } - override async exec(message: BushMessage | BushSlashMessage) { + public override async exec(message: BushMessage | BushSlashMessage) { const embed = new Embed() .setTimestamp() .setColor(util.colors.default) diff --git a/src/commands/info/pronouns.ts b/src/commands/info/pronouns.ts index 652881b..3eccd85 100644 --- a/src/commands/info/pronouns.ts +++ b/src/commands/info/pronouns.ts @@ -26,7 +26,7 @@ export default class PronounsCommand extends BushCommand { }); } - override async exec(message: BushMessage | BushSlashMessage, args: { user?: ArgType<'globalUser'> }) { + public override async exec(message: BushMessage | BushSlashMessage, args: { user?: ArgType<'globalUser'> }) { const user = args.user ?? message.author; const author = user.id === message.author.id; |
