mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix verfiy command
This commit is contained in:
parent
f770608816
commit
6f0e07807b
1 changed files with 2 additions and 2 deletions
|
@ -57,9 +57,9 @@ class VerifyCog(commands.Cog):
|
||||||
@commands.command(name="verify")
|
@commands.command(name="verify")
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def verification_force(self, ctx: commands.Context, user: discord.Member, _id: str):
|
async def verification_force(self, ctx: commands.Context, user: discord.Member, _id: str, name: str):
|
||||||
"""Manually verifies someone"""
|
"""Manually verifies someone"""
|
||||||
await Student.objects.create(id=_id, user_id=user.id)
|
await Student.objects.create(id=_id, user_id=user.id, name=name)
|
||||||
role = discord.utils.find(lambda r: r.name.lower() == "verified", ctx.guild.roles)
|
role = discord.utils.find(lambda r: r.name.lower() == "verified", ctx.guild.roles)
|
||||||
if role and role < ctx.me.top_role:
|
if role and role < ctx.me.top_role:
|
||||||
member = await ctx.guild.fetch_member(ctx.author.id)
|
member = await ctx.guild.fetch_member(ctx.author.id)
|
||||||
|
|
Loading…
Reference in a new issue