From 0ffb1bc7fbd2fe6c129c5e9f9b3bace78eff07e9 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 13 Mar 2023 01:16:41 +0100 Subject: [PATCH] Trying to add the Trial role again --- recruitmentCog/recruitment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recruitmentCog/recruitment.py b/recruitmentCog/recruitment.py index 4d395eb..8f94939 100644 --- a/recruitmentCog/recruitment.py +++ b/recruitmentCog/recruitment.py @@ -8,6 +8,7 @@ from redbot.core.utils.antispam import AntiSpam from redbot.core.bot import Red from redbot.core.utils.predicates import MessagePredicate +guild_id = 274657393936302080 application_channel_id = 1023172488143839252 class Recruitment(commands.Cog): @@ -52,8 +53,8 @@ class Recruitment(commands.Cog): # Send a confirmation message to the author await author.send("Thank you for submitting your application!") - # Assign the role to the author - guild = self.bot.get_guild(application_channel.guild.id) + # Add "Trial" role to the author + guild = self.bot.get_guild(guild_id) role = guild.get_role(531181363420987423) await author.add_roles(role)