Fuck more debugging!
This commit is contained in:
parent
0ffb1bc7fb
commit
35816e4d61
@ -50,13 +50,16 @@ class Recruitment(commands.Cog):
|
|||||||
for reaction in reactions:
|
for reaction in reactions:
|
||||||
await message.add_reaction(reaction)
|
await message.add_reaction(reaction)
|
||||||
|
|
||||||
# Send a confirmation message to the author
|
# Check if the author is a member of the guild
|
||||||
await author.send("Thank you for submitting your application!")
|
guild = self.bot.get_guild(274657393936302080)
|
||||||
|
member = guild.get_member(author.id)
|
||||||
|
if member is None:
|
||||||
|
await author.send("You need to join the server before your application can be processed.")
|
||||||
|
return
|
||||||
|
|
||||||
# Add "Trial" role to the author
|
# Assign the Trial role to the author
|
||||||
guild = self.bot.get_guild(guild_id)
|
|
||||||
role = guild.get_role(531181363420987423)
|
role = guild.get_role(531181363420987423)
|
||||||
await author.add_roles(role)
|
await member.add_roles(role)
|
||||||
|
|
||||||
async def format_application(self, answers: List[str], author: discord.Member) -> discord.Embed:
|
async def format_application(self, answers: List[str], author: discord.Member) -> discord.Embed:
|
||||||
"""Format the application answers into an embed."""
|
"""Format the application answers into an embed."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user