Browse Source

Add GuildEmoji.delete

pull/27/head
Andrei 8 years ago
parent
commit
33f77869d5
  1. 3
      disco/types/guild.py

3
disco/types/guild.py

@ -65,6 +65,9 @@ class GuildEmoji(Emoji):
def update(self, **kwargs):
return self.client.api.guilds_emojis_modify(self.guild_id, self.id, **kwargs)
def delete(self):
return self.client.api.guilds_emojis_delete(self.guild_id, self.id)
@property
def url(self):
return 'https://discordapp.com/api/emojis/{}.png'.format(self.id)

Loading…
Cancel
Save