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
20
addons/twitcher/eventsub/twitch_reconnect_message.gd
Normal file
20
addons/twitcher/eventsub/twitch_reconnect_message.gd
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
extends RefCounted
|
||||
|
||||
class_name TwitchReconnectMessage
|
||||
|
||||
## An object that contains the message.
|
||||
class Payload extends RefCounted:
|
||||
var session: TwitchEventsub.Session;
|
||||
|
||||
func _init(d: Dictionary) -> void:
|
||||
session = TwitchEventsub.Session.new(d.get("session", {}));
|
||||
|
||||
## An object that identifies the message.
|
||||
var metadata: TwitchEventsub.Metadata;
|
||||
|
||||
## An object that contains the message.
|
||||
var payload: Payload;
|
||||
|
||||
func _init(d: Dictionary) -> void:
|
||||
metadata = TwitchEventsub.Metadata.new(d.get("metadata", {}));
|
||||
payload = Payload.new(d.get("payload", {}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue