Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 544dc55

Browse files
authored
Merge pull request #158 from NekoFanatic/features/rolename_in_role_list
Added name from role to
2 parents e44cf0a + 1ae70c4 commit 544dc55

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

administration/roles/cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ async def roles_list(self, ctx: Context, *, role: Role):
361361
out.append(f":grey_question: <@{member_id}> (@{member_name}) :shield:")
362362

363363
if out:
364-
embed = Embed(title=t.member_list_cnt(len(out)), colour=0x256BE6, description="\n".join(out))
364+
embed = Embed(title=t.member_list_cnt(role.name, cnt=len(out)), colour=0x256BE6, description="\n".join(out))
365365
else:
366366
embed = Embed(title=t.member_list, colour=0xCF0606, description=t.no_members)
367367
await send_long_embed(ctx, embed, paginate=True)

administration/roles/translations/en.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ role_auth_removed: Role assignment authorization has been removed successfully.
3838
log_role_auth_removed: Role assignment authorization `@{}` -> `@{}` has been removed.
3939
role_not_authorized: You are not allowed to manage this role.
4040
member_list: Member List
41-
member_list_cnt: Member List ({})
41+
member_list_cnt:
42+
one: "Member List of @{} ({cnt} Member)"
43+
many: "Member List of @{} ({cnt} Members)"
4244
member_list_line: ":small_orange_diamond: {} ({})"
4345
no_members: No member was found with this role.
4446
role_already_assigned: Role has already been assigned to this member.

0 commit comments

Comments
 (0)