diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 8f0b782..df0604b 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -1085,6 +1085,16 @@ emoji_store = emo; }); + socket.on("GUILD_UPDATE", function (guil) { + $("#guild_name").text(guil.name); + if (guil.icon) { + $("#guild_icon").attr("src", guil.icon_url); + $("#guild_icon").show(); + } else { + $("#guild_icon").hide(); + } + }); + socket.on("CHANNEL_DELETE", function (chan) { for (var i = 0; i < guild_channels_list.length; i++) { var thatchannel = guild_channels_list[i]; diff --git a/webapp/titanembeds/templates/embed.html.j2 b/webapp/titanembeds/templates/embed.html.j2 index 6211189..ef3ff07 100644 --- a/webapp/titanembeds/templates/embed.html.j2 +++ b/webapp/titanembeds/templates/embed.html.j2 @@ -43,10 +43,8 @@