Skip to content

Commit be2a974

Browse files
feat(commands:profile): show server owner badge
Signed-off-by: GitHub <[email protected]>
1 parent ad8a2f3 commit be2a974

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ class ProfileCommand extends Command {
184184
}
185185

186186
if (member) {
187-
if (await this.permissionManagerService.isModerator(member)) {
187+
if (member.guild.ownerId === member.id) {
188+
badges.push(`${emoji(this.application, "owner") || ""} Server Owner`);
189+
} else if (await this.permissionManagerService.isModerator(member)) {
188190
badges.push(`${emoji(this.application, "moderator") || ""} Server Moderator`);
189191
}
190192
}

0 commit comments

Comments
 (0)