added getter and setter

This commit is contained in:
Yannik
2023-04-22 22:25:25 +02:00
parent 49f517b6a4
commit af9fccb7c6
5 changed files with 31 additions and 31 deletions

View File

@@ -1,7 +1,10 @@
extends Node
func _ready():
DiscordSDK.set_app_id(918857075105349632)
DiscordSDK.set_details("Made with GDExtension")
DiscordSDK.set_state("This is a test from GDScript in Godot 4") #TODO:Change functions to variables if possible
DiscordSDK.app_id = 918857075105349632
print(DiscordSDK.app_id)
DiscordSDK.details = "Made with GDExtension"
print(DiscordSDK.details)
DiscordSDK.state = "This is a test from GDScript in Godot 4" #TODO:Change functions to variables if possible
print(DiscordSDK.state)
DiscordSDK.refresh()