Added automatic Trial role assignment, should make set-able
This commit is contained in:
parent
7fdb49e8a5
commit
5980ac4b13
@ -254,6 +254,13 @@ class Recruitment(commands.Cog):
|
|||||||
return await author.send(_("You took too long. Try again later."))
|
return await author.send(_("You took too long. Try again later."))
|
||||||
else:
|
else:
|
||||||
val = await self.send_application(ctx, message, guild)
|
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):
|
with contextlib.suppress(discord.Forbidden, discord.HTTPException):
|
||||||
if val is None:
|
if val is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user