Add message if verification not enabled
This commit is contained in:
parent
82db0525ef
commit
10c6064a04
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,11 @@ class VerifyCog(commands.Cog):
|
|||
role = self.db.jarvis.settings.find_one(
|
||||
{"setting": "verified", "guild": ctx.guild.id}
|
||||
)
|
||||
if not role:
|
||||
await ctx.send(
|
||||
"This guild has not enabled verification", delete_after=5
|
||||
)
|
||||
return
|
||||
if ctx.guild.get_role(role["value"]) in ctx.author.roles:
|
||||
await ctx.send("You are already verified.", delete_after=5)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue