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

10 lines
234 B
GDScript3
Raw Permalink Normal View History

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"]))