Skip to content

Commit

Permalink
refactor(emoji): update sources
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Nov 3, 2024
1 parent da7bc17 commit dc6a161
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
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

0 comments on commit dc6a161

Please sign in to comment.