-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
namespace Pronouns { | ||
type User = { | ||
id: string // Twitch ID | ||
login: string // Twitch username | ||
pronoun_id: string // maps to name in Data | ||
channel_id: string // Twitch ID | ||
channel_login: string // Twitch username | ||
pronoun_id: string // maps to id in All | ||
alt_pronoun_id: string | null // maps to id in All, can be null | ||
} | ||
|
||
type Data = { | ||
name: string // pronouns ID | ||
display: string // pronouns display (for example: 'She/Her') | ||
subject: string // for "She/Her", this is "She" | ||
object: string // for "She/Her", this is "Her" | ||
/** | ||
* if this is true, | ||
* and the user has this as their pronoun_id, | ||
* and has no alt_pronoun_id, | ||
* then only display the subject (for example "Any" instead of "Any/Any") | ||
*/ | ||
singular: boolean | ||
} | ||
|
||
type All = { | ||
[id: string]: Data // id = name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters