Skip to content

Commit 04b5d64

Browse files
feat(commands:profile): add special badge for server admins
Signed-off-by: GitHub <[email protected]>
1 parent c55993a commit 04b5d64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/typescript/commands/information/ProfileCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ class ProfileCommand extends Command {
186186
if (member) {
187187
if (member.guild.ownerId === member.id) {
188188
badges.push(`${emoji(this.application, "owner") || ""} Server Owner`);
189+
} else if (member.permissions.has(PermissionFlagsBits.Administrator)) {
190+
badges.push(`${emoji(this.application, "moderator") || ""} Server Administrator`);
189191
} else if (await this.permissionManagerService.isModerator(member)) {
190192
badges.push(`${emoji(this.application, "moderator") || ""} Server Moderator`);
191193
}

0 commit comments

Comments
 (0)