diff options
| author | 2021-12-01 00:54:31 +0000 | |
|---|---|---|
| committer | 2021-12-01 01:10:41 +0000 | |
| commit | 96911a9c9b6e833e68fb2ead081d12da4ca5ffd9 (patch) | |
| tree | 8b5803f3b40e1b1563a59f39428524d00736e82e | |
| parent | Ensure a nomination archival emoji isn't from the bot (diff) | |
Fix emoji reaction error in reviewer
Using a :eyes: style emoji string in a ctx.add_reaciton call will error. Discord expects either a unicode emoji, or a custom emoji.
| -rw-r--r-- | bot/exts/recruitment/talentpool/_review.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/exts/recruitment/talentpool/_review.py b/bot/exts/recruitment/talentpool/_review.py index fab126408..eced33738 100644 --- a/bot/exts/recruitment/talentpool/_review.py +++ b/bot/exts/recruitment/talentpool/_review.py @@ -375,10 +375,10 @@ class Reviewer:      @staticmethod      def _random_ducky(guild: Guild) -> Union[Emoji, str]: -        """Picks a random ducky emoji. If no duckies found returns :eyes:.""" +        """Picks a random ducky emoji. If no duckies found returns 👀."""          duckies = [emoji for emoji in guild.emojis if emoji.name.startswith("ducky")]          if not duckies: -            return ":eyes:" +            return "\N{EYES}"          return random.choice(duckies)      @staticmethod | 
