I'm trying to make a bot for my friend's server and he wants me to create an alarm system. I cannot get this member in an if statement to actually work
My code:
@commands.command(aliases=['an'])
async def attacknorth(self, ctx, member:discord.Member):
guild = ctx.guild
alarmRole = discord.utils.get(guild.roles, name="Alarm Owner")
if member == alarmRole:
await ctx.send("North kingdom has alarm role")
else:
await ctx.send("They dont have alarm role")