Added automatic Trial role assignment, should make set-able

This commit is contained in:
unknown 2023-03-12 16:34:38 +01:00
parent 7fdb49e8a5
commit 5980ac4b13

View File

@ -254,6 +254,13 @@ class Recruitment(commands.Cog):
return await author.send(_("You took too long. Try again later."))
else:
val = await self.send_application(ctx, message, guild)
# Get the role to assign using its ID
trialRole_id = 531181363420987423
role = get(ctx.guild.roles, id=trialRole_id)
# Assign the role to the user who sent the application
if role is not None:
await author.add_roles(role)
with contextlib.suppress(discord.Forbidden, discord.HTTPException):
if val is None: