Made sure that we're in a server when checking for permissions
This commit is contained in:
parent
2baf153ae3
commit
2048865b26
|
@ -172,7 +172,7 @@ class Core:
|
|||
|
||||
cmd = None
|
||||
page = 1
|
||||
|
||||
if ctx.message.server:
|
||||
perms = ctx.message.server.me.permissions_in(ctx.message.channel)
|
||||
if not (perms.embed_links and perms.add_reactions):
|
||||
fmt = "I need the permissions `embed_links` and `add_reactions` to send my help message! " \
|
||||
|
|
Loading…
Reference in a new issue