Initial Commit
Initial commit of Code Base.
This commit is contained in:
parent
293b1213e1
commit
c11a4ebbc2
653 changed files with 36893 additions and 1 deletions
18
addons/twitcher/eventsub/twitch_welcome_message.gd
Normal file
18
addons/twitcher/eventsub/twitch_welcome_message.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
extends RefCounted
|
||||
|
||||
## Defines the first message that the EventSub WebSocket server sends after your client connects to the server.
|
||||
## See: https://dev.twitch.tv/docs/eventsub/websocket-reference/#welcome-message
|
||||
class_name TwitchWelcomeMessage
|
||||
|
||||
class TwitchWelcomeMessagePayload extends RefCounted:
|
||||
var session: TwitchEventsub.Session;
|
||||
|
||||
func _init(d: Dictionary) -> void:
|
||||
session = TwitchEventsub.Session.new(d.get("session", {}));
|
||||
|
||||
var metadata: TwitchEventsub.Metadata;
|
||||
var payload: TwitchWelcomeMessagePayload;
|
||||
|
||||
func _init(d: Dictionary) -> void:
|
||||
metadata = TwitchEventsub.Metadata.new(d.get("metadata", {}));
|
||||
payload = TwitchWelcomeMessagePayload.new(d.get("payload", {}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue