Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(emoji): update sources #279

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/commands/create-emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const EmojiRoot = LanguageKeys.Commands.Emoji;
createSelectMenuChoiceName(EmojiRoot.OptionsVariantFacebook, { value: EmojiSource.Facebook }),
createSelectMenuChoiceName(EmojiRoot.OptionsVariantGoogle, { value: EmojiSource.Google }),
createSelectMenuChoiceName(EmojiRoot.OptionsVariantMicrosoft, { value: EmojiSource.Microsoft }),
createSelectMenuChoiceName(EmojiRoot.OptionsVariantMicrosoftFluent, { value: EmojiSource.MicrosoftFluent }),
createSelectMenuChoiceName(EmojiRoot.OptionsVariantSamsung, { value: EmojiSource.Samsung }),
createSelectMenuChoiceName(EmojiRoot.OptionsVariantTwitter, { value: EmojiSource.Twitter }),
createSelectMenuChoiceName(EmojiRoot.OptionsVariantWhatsApp, { value: EmojiSource.WhatsApp })
Expand Down
1 change: 1 addition & 0 deletions src/commands/emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Root = LanguageKeys.Commands.Emoji;
createSelectMenuChoiceName(Root.OptionsVariantFacebook, { value: EmojiSource.Facebook }),
createSelectMenuChoiceName(Root.OptionsVariantGoogle, { value: EmojiSource.Google }),
createSelectMenuChoiceName(Root.OptionsVariantMicrosoft, { value: EmojiSource.Microsoft }),
createSelectMenuChoiceName(Root.OptionsVariantMicrosoftFluent, { value: EmojiSource.MicrosoftFluent }),
createSelectMenuChoiceName(Root.OptionsVariantSamsung, { value: EmojiSource.Samsung }),
createSelectMenuChoiceName(Root.OptionsVariantTwitter, { value: EmojiSource.Twitter }),
createSelectMenuChoiceName(Root.OptionsVariantWhatsApp, { value: EmojiSource.WhatsApp })
Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/LanguageKeys/Commands/Emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const OptionsVariantApple = T('commands/emoji:optionsVariantApple');
export const OptionsVariantFacebook = T('commands/emoji:optionsVariantFacebook');
export const OptionsVariantGoogle = T('commands/emoji:optionsVariantGoogle');
export const OptionsVariantMicrosoft = T('commands/emoji:optionsVariantMicrosoft');
export const OptionsVariantMicrosoftFluent = T('commands/emoji:optionsVariantMicrosoftFluent');
export const OptionsVariantSamsung = T('commands/emoji:optionsVariantSamsung');
export const OptionsVariantTwitter = T('commands/emoji:optionsVariantTwitter');
export const OptionsVariantWhatsApp = T('commands/emoji:optionsVariantWhatsApp');
Expand Down
14 changes: 8 additions & 6 deletions src/lib/utilities/emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,21 @@ export enum EmojiSource {
Facebook = 'facebook',
Google = 'google',
Microsoft = 'microsoft',
MicrosoftFluent = 'microsoft-3D-fluent',
Samsung = 'samsung',
Twitter = 'twitter',
WhatsApp = 'whatsapp'
}

const EmojipediaCodes = {
[EmojiSource.Apple]: '354',
[EmojiSource.Apple]: '391',
[EmojiSource.Facebook]: '355',
[EmojiSource.Google]: '350',
[EmojiSource.Microsoft]: '319',
[EmojiSource.Samsung]: '349',
[EmojiSource.Twitter]: '351',
[EmojiSource.WhatsApp]: '352'
[EmojiSource.Google]: '412',
[EmojiSource.Microsoft]: '407',
[EmojiSource.MicrosoftFluent]: '406',
[EmojiSource.Samsung]: '405',
[EmojiSource.Twitter]: '408',
[EmojiSource.WhatsApp]: '401'
} as const satisfies Record<EmojiSource, string>;

export interface DiscordEmoji {
Expand Down
1 change: 1 addition & 0 deletions src/locales/en-US/commands/emoji.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"optionsVariantFacebook": "Facebook",
"optionsVariantGoogle": "Google",
"optionsVariantMicrosoft": "Microsoft",
"optionsVariantMicrosoftFluent": "Microsoft 3D Fluent",
"optionsVariantSamsung": "Samsung",
"optionsVariantTwitter": "Twitter",
"optionsVariantWhatsApp": "WhatsApp",
Expand Down