-
Notifications
You must be signed in to change notification settings - Fork 46
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
Feature/membership gift #78
Draft
totoraj930
wants to merge
6
commits into
LinaTsukusu:develop
Choose a base branch
from
totoraj930:feature/membership-gift
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Feature/membership gift #78
totoraj930
wants to merge
6
commits into
LinaTsukusu:develop
from
totoraj930:feature/membership-gift
Conversation
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
#70 より、メンバーマイルストーンの追加もよろしければお願いします🙏 {
"clickTrackingParams": "clickTrackingParams",
"addChatItemAction": {
"item": {
"liveChatMembershipItemRenderer": {
"id": "id",
"timestampUsec": "1673268163978032",
"authorExternalChannelId": "ChannelID",
"headerPrimaryText": {
"runs": [
{
"text": "Member for 1 month"
}
]
},
"headerSubtext": { // メンバーシップのレベルの名前
"simpleText": "NAME OF MEMBERSHIPS"
},
"message": { // マイルストーンのメッセージ
"runs": [
{
"text": "Hi"
}
]
},
"authorName": { // メンバーの名前
"simpleText": "USERNAME"
},
"authorPhoto": { // メンバーのアイコン
"thumbnails": [
{
"url": "https://yt4.ggpht.com/",
"width": 32,
"height": 32
},
{
"url": "https://yt4.ggpht.com/",
"width": 64,
"height": 64
}
]
},
"authorBadges": [ // メンバーのバッジ
{
"liveChatAuthorBadgeRenderer": {
"customThumbnail": {
"thumbnails": [
{
"url": "https://yt3.ggpht.com/",
"width": 16,
"height": 16
},
{
"url": "https://yt3.ggpht.com/",
"width": 32,
"height": 32
}
]
},
"tooltip": "Member (1 month)",
"accessibility": {
"accessibilityData": {
"label": "Member (1 month)"
}
}
}
}
],
"contextMenuEndpoint": {
"clickTrackingParams": "clickTrackingParams",
"commandMetadata": {
"webCommandMetadata": {
"ignoreNavigation": true
}
},
"liveChatItemContextMenuEndpoint": {
"params": "params"
}
},
"contextMenuAccessibility": {
"accessibilityData": {
"label": "Chat actions"
}
},
"inlineActionButtons": [ // メッセージ操作等 (モデレーター用?)
{
"buttonRenderer": {
"style": "STYLE_DEFAULT",
"size": "SIZE_DEFAULT",
"isDisabled": false,
"serviceEndpoint": {
"clickTrackingParams": "params",
"commandMetadata": {
"webCommandMetadata": {
"sendPost": true,
"apiUrl": "/youtubei/v1/live_chat/moderate"
}
},
"moderateLiveChatEndpoint": {
"params": "params"
}
},
"icon": {
"iconType": "DELETE"
},
"accessibility": {
"label": "Remove"
},
"tooltip": "Remove",
"trackingParams": "trackingParams",
"accessibilityData": {
"accessibilityData": {
"label": "Remove"
}
}
}
},
{
"buttonRenderer": {
"style": "STYLE_DEFAULT",
"size": "SIZE_DEFAULT",
"isDisabled": false,
"serviceEndpoint": {
"clickTrackingParams": "clickTrackingParams",
"commandMetadata": {
"webCommandMetadata": {
"sendPost": true,
"apiUrl": "/youtubei/v1/live_chat/moderate"
}
},
"moderateLiveChatEndpoint": {
"params": "params"
}
},
"icon": {
"iconType": "HOURGLASS"
},
"accessibility": {
"label": "Put user in timeout"
},
"tooltip": "Put user in timeout",
"trackingParams": "trackingParams",
"accessibilityData": {
"accessibilityData": {
"label": "Put user in timeout"
}
}
}
},
{
"buttonRenderer": {
"style": "STYLE_DEFAULT",
"size": "SIZE_DEFAULT",
"isDisabled": false,
"serviceEndpoint": {
"clickTrackingParams": "clickTrackingParams",
"commandMetadata": {
"webCommandMetadata": {
"sendPost": true,
"apiUrl": "/youtubei/v1/live_chat/moderate"
}
},
"moderateLiveChatEndpoint": {
"params": "params"
}
},
"icon": {
"iconType": "REMOVE_CIRCLE"
},
"accessibility": {
"label": "Hide user on this channel"
},
"tooltip": "Hide user on this channel",
"trackingParams": "trackingParams",
"accessibilityData": {
"accessibilityData": {
"label": "Hide user on this channel"
}
}
}
}
],
"trackingParams": "trackingParams"
}
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
データが取れたので実装しました。
ただ、ギフトの個数などの情報が含まれていません。
ギフトのほかに受け取り通知もあるのですが、そちらはあまり情報が取れなさそうだったので実装を見送りました。
検討の余地があるかもしれません。
よろしくお願いします。
サンプル↓
受け取りのサンプル↓