fix: Formatting and missing formats.

This commit is contained in:
2023-08-18 12:37:46 +03:00
parent aa1c2655b9
commit a0c56ebc13
5 changed files with 8 additions and 8 deletions

View File

@@ -94,7 +94,7 @@ class StatsCog(LionCog):
@appcmds.describe(
season_start=_p(
'cmd:configure_statistics|param:season_start|desc',
"Time from which to start counting activity for rank badges and season leadeboards."
"Time from which to start counting activity for rank badges and season leaderboards. (YYYY-MM-DD)"
)
)
@appcmds.default_permissions(manage_guild=True)

View File

@@ -221,14 +221,14 @@ class GoalEditor(FastModal):
t(_p(
'modal:goal_editor|field:text_goal|error:NAN',
"The provided message goal `{input}` is not a number! Please try again."
))
)).format(input=string)
)
elif self.stat_page.stat is StatType.ANKI:
raise UserInputError(
t(_p(
'modal:goal_editor|field:anki_goal|error:NAN',
"The provided card goal `{input}` is not a number! Please try again."
))
)).format(input=string)
)
else:
result = int(string)