Skip to content

Commit

Permalink
fix reason missing with custom templates
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnterprise committed Feb 9, 2021
1 parent 1903541 commit ec4758e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GearBot/Util/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ async def send_infraction(user, guild, emoji, type, reason, **kwargs):
server=guild.name
)
if override is not None:
message = f"{Emoji.get_chat_emoji(emoji)} {format(override, kwargs, Configuration.get_var(guild.id, 'GENERAL', 'LANG'))}"
message = f"{Emoji.get_chat_emoji(emoji)} {format(override, kwargs, Configuration.get_var(guild.id, 'GENERAL', 'LANG'))}```{reason}```"
else:
message = f"{Emoji.get_chat_emoji(emoji)} {Translator.translate(f'{type.lower()}_dm', guild.id, **kwargs)}```{reason}```"
parts = message.split("```")
Expand Down

0 comments on commit ec4758e

Please sign in to comment.