From c84287c007e756221fcc998db2124315725720e6 Mon Sep 17 00:00:00 2001 From: DismissedGuy <32306794+DismissedGuy@users.noreply.github.com> Date: Thu, 19 Jul 2018 23:25:51 +0200 Subject: [PATCH] Add support for splash(_url) to invites --- discord/invite.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discord/invite.py b/discord/invite.py index 1cdabfdfb..868eccaab 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -109,6 +109,12 @@ class Invite(Hashable): guild = Object(id=guild_id) channel = Object(id=channel_id) guild.name = data['guild']['name'] + + guild.splash = data['guild']['splash'] + guild.splash_url = '' + if guild.splash: + guild.splash_url = 'https://cdn.discordapp.com/splashes/{0.id}/{0.splash}.jpg?size=2048'.format(guild) + channel.name = data['channel']['name'] data['guild'] = guild