Add Reaction.__str__
This commit is contained in:
parent
723e392c95
commit
649e4de149
@ -50,7 +50,7 @@ class Reaction:
|
|||||||
|
|
||||||
.. describe:: str(x)
|
.. describe:: str(x)
|
||||||
|
|
||||||
Returns the channel's name.
|
Returns the string form of the reaction's emoji.
|
||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
-----------
|
-----------
|
||||||
@ -87,6 +87,9 @@ class Reaction:
|
|||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.emoji)
|
return hash(self.emoji)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return str(self.emoji)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<Reaction emoji={0.emoji!r} me={0.me} count={0.count}>'.format(self)
|
return '<Reaction emoji={0.emoji!r} me={0.me} count={0.count}>'.format(self)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user