|
@ -8,7 +8,7 @@ from holster.enum import Enum |
|
|
|
|
|
|
|
|
from disco.types.base import ( |
|
|
from disco.types.base import ( |
|
|
SlottedModel, Field, ListField, AutoDictField, snowflake, text, |
|
|
SlottedModel, Field, ListField, AutoDictField, snowflake, text, |
|
|
datetime, enum, cached_property |
|
|
datetime, enum, cached_property, Unset |
|
|
) |
|
|
) |
|
|
from disco.util.paginator import Paginator |
|
|
from disco.util.paginator import Paginator |
|
|
from disco.util.snowflake import to_snowflake |
|
|
from disco.util.snowflake import to_snowflake |
|
@ -43,7 +43,7 @@ class Emoji(SlottedModel): |
|
|
|
|
|
|
|
|
@cached_property |
|
|
@cached_property |
|
|
def custom(self): |
|
|
def custom(self): |
|
|
return self.id is not None |
|
|
return not isinstance(self.id, Unset) |
|
|
|
|
|
|
|
|
def __eq__(self, other): |
|
|
def __eq__(self, other): |
|
|
if isinstance(other, Emoji): |
|
|
if isinstance(other, Emoji): |
|
|