|
@ -28,7 +28,7 @@ class Roles(commands.Cog): |
|
|
data.dump_guild_data(ctx.author.guild.id, ROLES_JSON, roles) |
|
|
data.dump_guild_data(ctx.author.guild.id, ROLES_JSON, roles) |
|
|
return await ctx.respond(f"Secret role {role.mention} added with password {password}.", ephemeral=True) |
|
|
return await ctx.respond(f"Secret role {role.mention} added with password {password}.", ephemeral=True) |
|
|
|
|
|
|
|
|
@secret_roles.command(description="Lists all passwords and their secret roles") |
|
|
@secret_roles.command(description="Lists all passwords and their secret roles.") |
|
|
async def list(self, ctx): |
|
|
async def list(self, ctx): |
|
|
roles = data.load_guild_data(ctx.author.guild.id, ROLES_JSON) |
|
|
roles = data.load_guild_data(ctx.author.guild.id, ROLES_JSON) |
|
|
if len(roles["secret_roles"]) == 0: |
|
|
if len(roles["secret_roles"]) == 0: |
|
|