Introduced prefer_emojis for PycordGuild

This commit is contained in:
2025-05-03 00:55:13 +02:00
parent aa2f90e1c5
commit 2d9bf1cfb9
4 changed files with 32 additions and 5 deletions

View File

@@ -65,9 +65,11 @@ class CogGuess(Cog):
return
if answer.lower() != stage.answer.lower():
# TODO Make a nice message
# await ctx.respond("Provided answer is wrong.")
await ctx.respond(self.bot.config["emojis"]["guess_wrong"])
await ctx.respond(
self.bot.config["emojis"]["guess_wrong"]
if guild.prefer_emojis
else self.bot._("guess_incorrect", "messages", locale=ctx.locale)
)
return
next_stage_index = stage.sequence + 1