Skip to content

Commit

Permalink
fix: change bot to app following Discord's change of the label (#394
Browse files Browse the repository at this point in the history
)



Co-authored-by: Jeroen Claassens <support@favware.tech>
  • Loading branch information
mezotv and favna committed Apr 19, 2024
1 parent c0395bc commit ec034d3
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
Binary file modified assets/dark_mode/normal_conversation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dark_mode/with_embed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/light_mode/normal_conversation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/light_mode/with_embed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class DiscordAuthorInfo extends LitElement {
draggable="false"
/>`
: null}
${this.bot && !this.server ? html`<span class="discord-application-tag">${this.verified ? VerifiedTick() : null} Bot</span>` : null}
${this.bot && !this.server ? html`<span class="discord-application-tag">${this.verified ? VerifiedTick() : null} App</span>` : null}
${this.server && !this.bot ? html`<span class="discord-application-tag">Server</span>` : null}
${this.op ? html`<span class="discord-application-tag discord-application-tag-op">OP</span>` : null}
${this.compactMode
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/discord-reply/DiscordReply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export class DiscordReply extends LitElement implements LightTheme {
() =>
html`${html`
${profile.bot && !profile.server
? html`<span class="discord-application-tag">${profile.verified ? VerifiedTick() : ''}Bot</span>`
? html`<span class="discord-application-tag">${profile.verified ? VerifiedTick() : ''}App</span>`
: null}
${profile.server && !profile.bot ? html`<span class="discord-application-tag">Server</span>` : ''}
${profile.op ? html`<span class="discord-application-tag discord-application-tag-op">OP</span>` : ''}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class DiscordThreadMessage extends LitElement implements LightTheme {
return html`<img src=${ifDefined(profile.avatar)} class="discord-thread-message-avatar" alt=${ifDefined(profile.author)} />
${html`
${profile.bot && !profile.server
? html`<span class="discord-application-tag"> ${profile.verified ? VerifiedTick() : null} Bot </span>`
? html`<span class="discord-application-tag"> ${profile.verified ? VerifiedTick() : null} App </span>`
: null}
${profile.server && !profile.bot ? html`<span class="discord-application-tag">Server</span>` : null}
`}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/svgs/VerifiedTick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function VerifiedTick(props: Record<string, unknown> = {}) {
return html`<svg
${spread(props)}
class="discord-application-tag-verified"
aria-label="Verified Bot"
aria-label="Verified App"
aria-hidden="false"
width="16"
height="16"
Expand Down

0 comments on commit ec034d3

Please sign in to comment.