Skip to content

Commit

Permalink
Use unicode codes instead of emojis (#295)
Browse files Browse the repository at this point in the history
This change was made to avoid using emoji in the code, which may not
render correctly depending on the IDE and/or operating system.
  • Loading branch information
mctaylors authored Apr 1, 2024
1 parent 9429dfe commit 70fccf8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Commands/AboutCommandGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ private async Task<Result> SendAboutBotAsync(IUser bot, Snowflake guildId, Cance
var repositoryButton = new ButtonComponent(
ButtonComponentStyle.Link,
Messages.ButtonOpenRepository,
new PartialEmoji(Name: "🌐"),
new PartialEmoji(Name: "\ud83c\udf10"), // 'GLOBE WITH MERIDIANS' (U+1F310)
URL: BuildInfo.RepositoryUrl
);

var wikiButton = new ButtonComponent(
ButtonComponentStyle.Link,
Messages.ButtonOpenWiki,
new PartialEmoji(Name: "📖"),
new PartialEmoji(Name: "\ud83d\udcd6"), // 'OPEN BOOK' (U+1F4D6)
URL: BuildInfo.WikiUrl
);

Expand All @@ -123,7 +123,7 @@ private async Task<Result> SendAboutBotAsync(IUser bot, Snowflake guildId, Cance
BuildInfo.IsDirty
? Messages.ButtonDirty
: Messages.ButtonReportIssue,
new PartialEmoji(Name: "⚠️"),
new PartialEmoji(Name: "\u26a0\ufe0f"), // 'WARNING SIGN' (U+26A0)
URL: BuildInfo.IssuesUrl,
IsDisabled: BuildInfo.IsDirty
);
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Events/ErrorLoggingPostExecutionEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task<Result> AfterExecutionAsync(
BuildInfo.IsDirty
? Messages.ButtonDirty
: Messages.ButtonReportIssue,
new PartialEmoji(Name: "⚠️"),
new PartialEmoji(Name: "\u26a0\ufe0f"), // 'WARNING SIGN' (U+26A0)
URL: BuildInfo.IssuesUrl,
IsDisabled: BuildInfo.IsDirty
);
Expand Down
2 changes: 1 addition & 1 deletion src/Responders/GuildLoadedResponder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private async Task<Result> SendDataLoadFailed(IGuild guild, GuildData data, IUse
BuildInfo.IsDirty
? Messages.ButtonDirty
: Messages.ButtonReportIssue,
new PartialEmoji(Name: "⚠️"),
new PartialEmoji(Name: "\u26a0\ufe0f"), // 'WARNING SIGN' (U+26A0)
URL: BuildInfo.IssuesUrl,
IsDisabled: BuildInfo.IsDirty
);
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Update/ScheduledEventUpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ private async Task<Result> SendScheduledEventCreatedMessage(
var button = new ButtonComponent(
ButtonComponentStyle.Link,
Messages.ButtonOpenEventInfo,
new PartialEmoji(Name: "📋"),
new PartialEmoji(Name: "\ud83d\udccb"), // 'CLIPBOARD' (U+1F4CB)
URL: $"https://discord.com/events/{scheduledEvent.GuildID}/{scheduledEvent.ID}"
);

Expand Down

0 comments on commit 70fccf8

Please sign in to comment.