Attempt to fix roles section overflowing in serverinfo command
@@ -472,8 +472,8 @@ class Useful(commands.Cog):
embed.add_field(name="General :gear:", value=(general + ban_count_display), inline=True)
embed.add_field(name="Villager Bot " + self.d.emojis.emerald, value=villager, inline=True)
- role_mentions = [r.mention for r in guild.roles if r.id != guild.id][::-1]
- role_mentions_cut = list(shorten_chunks(role_mentions, 1000))
+ if role_mentions := [r.mention for r in guild.roles if r.id != guild.id][::-1]:
+ role_mentions_cut = list(shorten_chunks(role_mentions, 900))
role_mentions_diff = len(role_mentions) - len(role_mentions_cut)
embed.add_field(
