I don't know anymore
This commit is contained in:
parent
2e4970b6dd
commit
5f454a0d58
@ -71,8 +71,7 @@ class ReginaldCog(commands.Cog):
|
|||||||
if role.id not in allowed_roles:
|
if role.id not in allowed_roles:
|
||||||
allowed_roles.append(role.id)
|
allowed_roles.append(role.id)
|
||||||
await self.config.guild(ctx.guild).allowed_roles.set(allowed_roles) # Save change
|
await self.config.guild(ctx.guild).allowed_roles.set(allowed_roles) # Save change
|
||||||
print(f"DEBUG: Role {role.id} added. Current allowed_roles: {allowed_roles}") # ✅ Print Debug Info
|
await ctx.send(f"DEBUG: Role {role.id} added. Current allowed_roles: {allowed_roles}")
|
||||||
await ctx.send(f"✅ Role `{role.name}` has been granted access to interact with Reginald.")
|
|
||||||
else:
|
else:
|
||||||
await ctx.send(f"⚠️ Role `{role.name}` already has access.")
|
await ctx.send(f"⚠️ Role `{role.name}` already has access.")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user