Skip to content

Commit

Permalink
Fix emojis not showing up in error embeds bug
Browse files Browse the repository at this point in the history
  • Loading branch information
abbyfour committed Feb 28, 2024
1 parent 54fb0d7 commit dff9311
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 40 deletions.
13 changes: 13 additions & 0 deletions src/commands/Archived/PingIndexer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Command } from "../../lib/command/Command";

export default class PingMirrorball extends Command {
idSeed = "exid jeonghwa";
aliases = ["pingindexer"];
archived = true;

description = "Ping Mirrorball";
subcategory = "developer";
secretCommand = true;

async run() {}
}
38 changes: 0 additions & 38 deletions src/commands/Lastfm/Mirrorball/PingIndexer.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib/ui/embeds/ErrorEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class ErrorEmbed extends EmbedView {
const embed = super
.asDiscordSendable()
.setColour(errorColour)
.setDescription(`${Emoji.error} ${this.getDescription()}`);
.setDescription(`${Emoji.error} ${this.description()}`);

if (footer) {
embed.setFooter(footer);
Expand All @@ -31,7 +31,7 @@ export class ErrorEmbed extends EmbedView {
return this;
}

protected getDescription(): string | undefined {
protected description(): string | undefined {
if (this.error) {
return uppercaseFirstLetter(this.error.message);
}
Expand Down

0 comments on commit dff9311

Please sign in to comment.