Added i18n to the jailing mechanism
This commit is contained in:
@@ -94,8 +94,7 @@ class CogStage(Cog):
|
||||
try:
|
||||
pycord_event: PycordEvent = await self.bot.find_event(event_id=event)
|
||||
except (InvalidId, EventStageNotFoundError):
|
||||
# TODO Make a nice message
|
||||
await ctx.respond("Event was not found.")
|
||||
await ctx.respond(self.bot._("event_not_found", "messages", locale=ctx.locale), ephemeral=True)
|
||||
return
|
||||
|
||||
if not (await is_event_status_valid(ctx, pycord_event)):
|
||||
@@ -208,8 +207,7 @@ class CogStage(Cog):
|
||||
try:
|
||||
pycord_event: PycordEvent = await self.bot.find_event(event_id=event)
|
||||
except (InvalidId, EventNotFoundError):
|
||||
# TODO Make a nice message
|
||||
await ctx.respond("Event was not found.")
|
||||
await ctx.respond(self.bot._("event_not_found", "messages", locale=ctx.locale), ephemeral=True)
|
||||
return
|
||||
|
||||
if not (await is_event_status_valid(ctx, pycord_event)):
|
||||
@@ -293,8 +291,7 @@ class CogStage(Cog):
|
||||
try:
|
||||
pycord_event: PycordEvent = await self.bot.find_event(event_id=event)
|
||||
except (InvalidId, EventNotFoundError):
|
||||
# TODO Make a nice message
|
||||
await ctx.respond("Event was not found.")
|
||||
await ctx.respond(self.bot._("event_not_found", "messages", locale=ctx.locale), ephemeral=True)
|
||||
return
|
||||
|
||||
if not (await is_event_status_valid(ctx, pycord_event)):
|
||||
|
Reference in New Issue
Block a user