Fix verfiy command

This commit is contained in:
eek7574 2022-12-18 14:53:52 +00:00
parent f770608816
commit 6f0e07807b

View file

@ -57,9 +57,9 @@ class VerifyCog(commands.Cog):
@commands.command(name="verify")
@commands.is_owner()
@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"""
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)
if role and role < ctx.me.top_role:
member = await ctx.guild.fetch_member(ctx.author.id)