mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-06-02 10:34:54 +12:00
fix listing in role list
This commit is contained in:
parent
512042cdb7
commit
80598620d3
|
@ -811,6 +811,7 @@ class RoleManagement(
|
||||||
return await ctx.send("There aren't any self roles here.")
|
return await ctx.send("There aren't any self roles here.")
|
||||||
|
|
||||||
embed = discord.Embed(title="Roles", colour=ctx.guild.me.colour)
|
embed = discord.Embed(title="Roles", colour=ctx.guild.me.colour)
|
||||||
|
embed.set_footer(text="You can only have one role in the same unique group!")
|
||||||
i = 0
|
i = 0
|
||||||
for role, (cost, sub, ex_groups) in sorted(data.items(), key=lambda kv: kv[1][0]):
|
for role, (cost, sub, ex_groups) in sorted(data.items(), key=lambda kv: kv[1][0]):
|
||||||
if ex_groups:
|
if ex_groups:
|
||||||
|
@ -829,9 +830,10 @@ class RoleManagement(
|
||||||
i += 1
|
i += 1
|
||||||
if i % MAX_EMBED == 0:
|
if i % MAX_EMBED == 0:
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
embed.set_footer(text="You can only have one role in the same unique group!")
|
embed.clear_fields()
|
||||||
|
|
||||||
await ctx.send(embed=embed)
|
if i % MAX_EMBED != 0:
|
||||||
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@selfrole.command(name="buy")
|
@selfrole.command(name="buy")
|
||||||
async def selfrole_buy(self, ctx: GuildContext, *, role: discord.Role):
|
async def selfrole_buy(self, ctx: GuildContext, *, role: discord.Role):
|
||||||
|
|
Loading…
Reference in a new issue