aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcogs/general.py2
-rwxr-xr-xcogs/utils.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/cogs/general.py b/cogs/general.py
index 1e841af..0612e67 100755
--- a/cogs/general.py
+++ b/cogs/general.py
@@ -499,7 +499,7 @@ class General(commands.Cog):
boosters += i.mention+" "
embed.add_field(name="Boosted by:", value=boosters, inline=True)
embed.set_thumbnail(url=serverIcon)
- embed.set_image(url=guild.banner_url_as(format="png"))
+ embed.set_image(url=guild.splash_url_as(format="png"))
embed.add_field(name="Created on", value=guild.created_at.date(), inline=True)
embed.add_field(name="Members", value=guild.member_count, inline=True)
embed.add_field(name="Emojis", value=emojiList, inline=True)
diff --git a/cogs/utils.py b/cogs/utils.py
index 012a8c3..752a7b7 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -161,6 +161,8 @@ class Utils(commands.Cog):
@commands.Cog.listener()
async def on_message(self, message):
+ if not message.guild:
+ return
if message.channel.id != int(self.bot.config[str(message.guild.id)]["fair_channel"]):
return
if message.author.bot: