miggor-StreamGraph/addons/no_twitch/demo/test_button.gd

9 lines
234 B
GDScript

extends Button
@onready var twitch_connection : Twitch_Connection = $"../../Twitch_Connection"
func _pressed():
OS.shell_open(twitch_connection.authenticate_with_twitch(["channel:read:redemptions", "chat:read", "chat:edit"]))