1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 09:09:00 +03:00

Use unicode codes instead of emojis (#295)

This change was made to avoid using emoji in the code, which may not
render correctly depending on the IDE and/or operating system.
This commit is contained in:
Macintxsh 2024-04-01 15:57:49 +03:00 committed by GitHub
parent 9429dfe8d8
commit 70fccf8335
Signed by: GitHub
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -107,14 +107,14 @@ public class AboutCommandGroup : CommandGroup
var repositoryButton = new ButtonComponent( var repositoryButton = new ButtonComponent(
ButtonComponentStyle.Link, ButtonComponentStyle.Link,
Messages.ButtonOpenRepository, Messages.ButtonOpenRepository,
new PartialEmoji(Name: "🌐"), new PartialEmoji(Name: "\ud83c\udf10"), // 'GLOBE WITH MERIDIANS' (U+1F310)
URL: BuildInfo.RepositoryUrl URL: BuildInfo.RepositoryUrl
); );
var wikiButton = new ButtonComponent( var wikiButton = new ButtonComponent(
ButtonComponentStyle.Link, ButtonComponentStyle.Link,
Messages.ButtonOpenWiki, Messages.ButtonOpenWiki,
new PartialEmoji(Name: "📖"), new PartialEmoji(Name: "\ud83d\udcd6"), // 'OPEN BOOK' (U+1F4D6)
URL: BuildInfo.WikiUrl URL: BuildInfo.WikiUrl
); );
@ -123,7 +123,7 @@ public class AboutCommandGroup : CommandGroup
BuildInfo.IsDirty BuildInfo.IsDirty
? Messages.ButtonDirty ? Messages.ButtonDirty
: Messages.ButtonReportIssue, : Messages.ButtonReportIssue,
new PartialEmoji(Name: "⚠️"), new PartialEmoji(Name: "\u26a0\ufe0f"), // 'WARNING SIGN' (U+26A0)
URL: BuildInfo.IssuesUrl, URL: BuildInfo.IssuesUrl,
IsDisabled: BuildInfo.IsDirty IsDisabled: BuildInfo.IsDirty
); );

View file

@ -73,7 +73,7 @@ public class ErrorLoggingPostExecutionEvent : IPostExecutionEvent
BuildInfo.IsDirty BuildInfo.IsDirty
? Messages.ButtonDirty ? Messages.ButtonDirty
: Messages.ButtonReportIssue, : Messages.ButtonReportIssue,
new PartialEmoji(Name: "⚠️"), new PartialEmoji(Name: "\u26a0\ufe0f"), // 'WARNING SIGN' (U+26A0)
URL: BuildInfo.IssuesUrl, URL: BuildInfo.IssuesUrl,
IsDisabled: BuildInfo.IsDirty IsDisabled: BuildInfo.IsDirty
); );

View file

@ -114,7 +114,7 @@ public class GuildLoadedResponder : IResponder<IGuildCreate>
BuildInfo.IsDirty BuildInfo.IsDirty
? Messages.ButtonDirty ? Messages.ButtonDirty
: Messages.ButtonReportIssue, : Messages.ButtonReportIssue,
new PartialEmoji(Name: "⚠️"), new PartialEmoji(Name: "\u26a0\ufe0f"), // 'WARNING SIGN' (U+26A0)
URL: BuildInfo.IssuesUrl, URL: BuildInfo.IssuesUrl,
IsDisabled: BuildInfo.IsDirty IsDisabled: BuildInfo.IsDirty
); );

View file

@ -223,7 +223,7 @@ public sealed class ScheduledEventUpdateService : BackgroundService
var button = new ButtonComponent( var button = new ButtonComponent(
ButtonComponentStyle.Link, ButtonComponentStyle.Link,
Messages.ButtonOpenEventInfo, Messages.ButtonOpenEventInfo,
new PartialEmoji(Name: "📋"), new PartialEmoji(Name: "\ud83d\udccb"), // 'CLIPBOARD' (U+1F4CB)
URL: $"https://discord.com/events/{scheduledEvent.GuildID}/{scheduledEvent.ID}" URL: $"https://discord.com/events/{scheduledEvent.GuildID}/{scheduledEvent.ID}"
); );