Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/arguments/array-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class GameArgument extends Argument<string> {
return this.error({
parameter,
message: '',
identifier: 'gameNoSupport',
identifier: 'gameObjectNoSupport',
context,
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/arguments/yaw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default class YawArgument extends Argument<number> {
} else {
return this.error({
parameter,
message: 'Game not supported.',
identifier: 'gameNoSupport',
message: 'Game not supported or a valid yaw value.',
identifier: 'yawNoSupport',
context,
})
}
Expand Down
22 changes: 21 additions & 1 deletion src/listeners/commands/commandError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,27 @@ export default class UserListener extends Listener<typeof Events.CommandError> {

case 'floatError':
void message.reply(
`\`${error.parameter}\` is not a valid decimal.`
`\`${error.parameter}\` is not a valid decimal.
> **Tip**: You can do \`${args.commandContext.prefix}help ${args.command.name}\` to find out how to use this command.`
)
break

case 'gameObjectNoSupport':
void message.reply(
`\`${error.parameter}\` is not a valid object type. Must be either 'film', 'yaw', 'alias' or 'name'`
)
break

case 'badFILMNotation':
void message.reply(
`\`${error.parameter}\` is not valid FILM notation.`
)
break

case 'yawNoSupport':
void message.reply(
`\`${error.parameter}\` is not a valid decimal or supported game
> **Tip**: You can do \`${args.commandContext.prefix}games\` to see all the supported games.`
)
break

Expand Down