|
@ -49,6 +49,10 @@ class GuildEmoji(Emoji): |
|
|
managed = Field(bool) |
|
|
managed = Field(bool) |
|
|
roles = ListField(snowflake) |
|
|
roles = ListField(snowflake) |
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
|
def url(self): |
|
|
|
|
|
return 'https://discordapp.com/api/emojis/{}.png'.format(self.id) |
|
|
|
|
|
|
|
|
@cached_property |
|
|
@cached_property |
|
|
def guild(self): |
|
|
def guild(self): |
|
|
return self.client.state.guilds.get(self.guild_id) |
|
|
return self.client.state.guilds.get(self.guild_id) |
|
|