Esempio n. 1
0
 def update_reaction(self, react: discord.Reaction):
     if react.is_custom_emoji():
         for reaction in self.reactions:
             if reaction[0] == str(react.emoji):
                 reaction[1] = react.count + reaction[1]
                 return
         self.reactions.append([str(react.emoji), react.count])
         return
     return
Esempio n. 2
0
 def footer_from_reaction(embed: Embed, reaction: Reaction):
     if reaction.is_custom_emoji():
         embed.set_footer(icon_url=reaction.emoji.url,
                          text=f'{reaction.count}')
     else:
         embed.set_footer(text=f'{reaction.emoji} {reaction.count}')