diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-07-10 20:09:16 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-07-10 20:09:16 +0000 |
commit | 47464b0619ee29eb9ec1a159e2d17334aaa4b144 (patch) | |
tree | 0a409b5e0439bc40e38a447c67a97dd5af6cfaa3 | |
parent | 6022b17889ca5231214e0281bdea3b2388000572 (diff) | |
download | steve-bot-47464b0619ee29eb9ec1a159e2d17334aaa4b144.tar steve-bot-47464b0619ee29eb9ec1a159e2d17334aaa4b144.tar.gz steve-bot-47464b0619ee29eb9ec1a159e2d17334aaa4b144.tar.bz2 steve-bot-47464b0619ee29eb9ec1a159e2d17334aaa4b144.tar.lz steve-bot-47464b0619ee29eb9ec1a159e2d17334aaa4b144.tar.xz steve-bot-47464b0619ee29eb9ec1a159e2d17334aaa4b144.tar.zst steve-bot-47464b0619ee29eb9ec1a159e2d17334aaa4b144.zip |
Fixed /verify in DMs
-rwxr-xr-x | cogs/general.py | 2 | ||||
-rwxr-xr-x | cogs/utils.py | 2 |
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: |