Trying to add the Trial role again

This commit is contained in:
unknown 2023-03-13 01:16:41 +01:00
parent 70328291e1
commit 0ffb1bc7fb

View File

@ -8,6 +8,7 @@ from redbot.core.utils.antispam import AntiSpam
from redbot.core.bot import Red from redbot.core.bot import Red
from redbot.core.utils.predicates import MessagePredicate from redbot.core.utils.predicates import MessagePredicate
guild_id = 274657393936302080
application_channel_id = 1023172488143839252 application_channel_id = 1023172488143839252
class Recruitment(commands.Cog): class Recruitment(commands.Cog):
@ -52,8 +53,8 @@ class Recruitment(commands.Cog):
# Send a confirmation message to the author # Send a confirmation message to the author
await author.send("Thank you for submitting your application!") await author.send("Thank you for submitting your application!")
# Assign the role to the author # Add "Trial" role to the author
guild = self.bot.get_guild(application_channel.guild.id) guild = self.bot.get_guild(guild_id)
role = guild.get_role(531181363420987423) role = guild.get_role(531181363420987423)
await author.add_roles(role) await author.add_roles(role)