Fixed categories and some timestamps
This commit is contained in:
@@ -101,7 +101,8 @@ class CogEvent(Cog):
|
||||
)
|
||||
return
|
||||
|
||||
await validate_event_validity(ctx, name, start_date, end_date, guild_timezone)
|
||||
if not await validate_event_validity(ctx, name, start_date, end_date, guild_timezone):
|
||||
return
|
||||
|
||||
processed_media: List[Dict[str, Any]] = (
|
||||
[] if thumbnail is None else await self.bot.process_attachments([thumbnail])
|
||||
@@ -118,7 +119,7 @@ class CogEvent(Cog):
|
||||
|
||||
# TODO Introduce i18n
|
||||
await ctx.respond(
|
||||
f"Event **{event.name}** has been created and will take place <t:{get_unix_timestamp(event.starts)}:R>."
|
||||
f"Event **{event.name}** has been created and will take place <t:{get_unix_timestamp(event.starts, to_utc=True)}:R>."
|
||||
)
|
||||
|
||||
@command_group.command(
|
||||
@@ -211,7 +212,8 @@ class CogEvent(Cog):
|
||||
await ctx.respond("Could not parse the end date.")
|
||||
return
|
||||
|
||||
await validate_event_validity(ctx, name, start_date, end_date, guild_timezone)
|
||||
if not await validate_event_validity(ctx, name, start_date, end_date, guild_timezone):
|
||||
return
|
||||
|
||||
processed_media: List[Dict[str, Any]] = (
|
||||
[] if thumbnail is None else await self.bot.process_attachments([thumbnail])
|
||||
@@ -229,7 +231,7 @@ class CogEvent(Cog):
|
||||
|
||||
# TODO Make a nice message
|
||||
await ctx.respond(
|
||||
f"Event **{pycord_event.name}** has been updated and will take place <t:{get_unix_timestamp(pycord_event.starts)}:R>."
|
||||
f"Event **{pycord_event.name}** has been updated and will take place <t:{get_unix_timestamp(pycord_event.starts, to_utc=True)}:R>."
|
||||
)
|
||||
|
||||
@command_group.command(
|
||||
|
Reference in New Issue
Block a user