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/moderation | |
| 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/moderation')
| -rw-r--r-- | src/commands/moderation/evidence.ts | 2 | ||||
| -rw-r--r-- | src/commands/moderation/role.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/moderation/evidence.ts b/src/commands/moderation/evidence.ts index d951f3d..444a173 100644 --- a/src/commands/moderation/evidence.ts +++ b/src/commands/moderation/evidence.ts @@ -36,7 +36,7 @@ export default class EvidenceCommand extends BushCommand { }); } - override *args(message: BushMessage): ArgumentGeneratorReturn { + public override *args(message: BushMessage): ArgumentGeneratorReturn { const case_id: ArgumentTypeCasterReturn<'string'> = yield { id: 'case_id', type: 'string', diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts index b76795b..920ef81 100644 --- a/src/commands/moderation/role.ts +++ b/src/commands/moderation/role.ts @@ -8,7 +8,7 @@ import { type BushSlashMessage, type OptionalArgType } from '#lib'; -import { type ArgumentOptions, type Flag } from 'discord-akairo'; +import { type ArgumentGeneratorReturn } from 'discord-akairo'; import { ApplicationCommandOptionType, PermissionFlagsBits, type Snowflake } from 'discord.js'; export default class RoleCommand extends BushCommand { @@ -66,7 +66,7 @@ export default class RoleCommand extends BushCommand { }); } - public override *args(message: BushMessage): Generator<ArgumentOptions | Flag> { + public override *args(message: BushMessage): ArgumentGeneratorReturn { const action = (['rr'] as const).includes(message.util.parsed?.alias ?? '') ? 'remove' : (['ar', 'ra'] as const).includes(message.util.parsed?.alias ?? '') @@ -211,7 +211,7 @@ export default class RoleCommand extends BushCommand { await message.util.reply({ content: responseMessage(), allowedMentions: AllowedMentions.none() }); } - punishmentRoleNames = [ + private punishmentRoleNames = [ 'No Files', 'No Links', 'No Threads', |
