[Issue/Bug]: discord_is_working is always false. #76

Closed
opened 2024-12-01 12:30:38 +00:00 by Xecestel · 8 comments
Xecestel commented 2024-12-01 12:30:38 +00:00 (Migrated from github.com)

What happened?

I installed the plugin but I can't get it to work. It keeps telling me Discord is not working, even though I have Discord up and running.
I already checked the other issues but haven't found a solution, as I didn't install Discord through Flatpak.

Version

1.3.1

Godot Version

4.3.stable

Exact steps to reproduce this error

I just downloaded the plugin, installed and made a script to set up the Rich Presence and everything.

GDScript

extends Node

func _ready() -> void:
	DiscordRPC.app_id = 1312751198557700237
	print("Discord working: " + str(DiscordRPC.get_is_discord_working()))


func update_rich_presence(rich_presence_string : String) -> void:
	DiscordRPC.details = rich_presence_string
	DiscordRPC.start_timestamp = int(Time.get_unix_time_from_system())
	DiscordRPC.end_timestamp = int(Time.get_unix_time_from_system()) + 3600
	DiscordRPC.refresh()

Godot output

Godot Engine v4.3.stable.flathub.77dcf97d8 - https://godotengine.org
Vulkan 1.3.289 - Forward+ - Using Device #0: AMD - AMD Radeon RX 5700 XT (RADV NAVI10)

Discord working: false

Additional information

No response

Checks

### What happened? I installed the plugin but I can't get it to work. It keeps telling me Discord is not working, even though I have Discord up and running. I already checked the other issues but haven't found a solution, as I didn't install Discord through Flatpak. ### Version 1.3.1 ### Godot Version 4.3.stable ### Exact steps to reproduce this error I just downloaded the plugin, installed and made a script to set up the Rich Presence and everything. ### GDScript ```gdscript extends Node func _ready() -> void: DiscordRPC.app_id = 1312751198557700237 print("Discord working: " + str(DiscordRPC.get_is_discord_working())) func update_rich_presence(rich_presence_string : String) -> void: DiscordRPC.details = rich_presence_string DiscordRPC.start_timestamp = int(Time.get_unix_time_from_system()) DiscordRPC.end_timestamp = int(Time.get_unix_time_from_system()) + 3600 DiscordRPC.refresh() ``` ### Godot output ```shell Godot Engine v4.3.stable.flathub.77dcf97d8 - https://godotengine.org Vulkan 1.3.289 - Forward+ - Using Device #0: AMD - AMD Radeon RX 5700 XT (RADV NAVI10) Discord working: false ``` ### Additional information _No response_ ### Checks - [X] I tried reinstalling the addon or tried to fix it myself with other methods. - [X] I tried restarting Discord and Godot completely. - [X] I did read the documentation https://vaporvee.com/docs/discord-rpc-godot/

Sorry didnt see this issue. Did you also try the trouble shooting guide in the docs?

Sorry didnt see this issue. Did you also try the trouble shooting guide in the docs?

Also for some reason you set both start and end timestamp. That would break it later

Also for some reason you set both start and end timestamp. That would break it later

And isn't flathub similar to flatpack?

And isn't flathub similar to flatpack?
Xecestel commented 2025-01-19 10:36:19 +00:00 (Migrated from github.com)

Sorry for the late reply, but yes: I did try the trouble shooting guide in the docs.
Also, yes: flathub is similar to flatpak, the point is that as far as I could find in the other issues the problem is usually when Discord is installed through flatpak, not Godot.

Sorry for the late reply, but yes: I did try the trouble shooting guide in the docs. Also, yes: flathub is similar to flatpak, the point is that as far as I could find in the other issues the problem is usually when Discord is installed through flatpak, not Godot.

So is_discord_working is always false. Is the rpc running when you just ignore that variable? Just set app id and refresh?

So is_discord_working is always false. Is the rpc running when you just ignore that variable? Just set app id and refresh?

Sorry except for the troubleshooting i see not many options

Sorry except for the troubleshooting i see not many options
Pukimaa commented 2025-02-08 11:04:14 +00:00 (Migrated from github.com)

@Xecestel as far as I am aware, Discord has a lot of issues with RPC in the flatpak version. Try searching for it on your search engine of choice. Depending on your distro, you probably want to either reinstall it using a different method or do some configuration.
I believe the Arch Wiki has a great resource on why and how to do that, but not entirely sure right now.

If you face any issues, please tell us your Distro and then I can try searching for steps on how to possibly resolve this issue ^^

@Xecestel as far as I am aware, Discord has a lot of issues with RPC in the flatpak version. Try searching for it on your search engine of choice. Depending on your distro, you probably want to either reinstall it using a different method or do some configuration. I believe the Arch Wiki has a great resource on why and how to do that, but not entirely sure right now. If you face any issues, please tell us your Distro and then I can try searching for steps on how to possibly resolve this issue ^^
Pukimaa commented 2025-02-08 11:04:50 +00:00 (Migrated from github.com)

@Xecestel as far as I am aware, Discord has a lot of issues with RPC in the flatpak version. Try searching for it on your search engine of choice. Depending on your distro, you probably want to either reinstall it using a different method or do some configuration. I believe the Arch Wiki has a great resource on why and how to do that, but not entirely sure right now.

If you face any issues, please tell us your Distro and then I can try searching for steps on how to possibly resolve this issue ^^

Oh sorry, did not read your issue correctly. You're not using the flatpak package. Yeah, then I am not sure.

> [@Xecestel](https://github.com/Xecestel) as far as I am aware, Discord has a lot of issues with RPC in the flatpak version. Try searching for it on your search engine of choice. Depending on your distro, you probably want to either reinstall it using a different method or do some configuration. I believe the Arch Wiki has a great resource on why and how to do that, but not entirely sure right now. > > If you face any issues, please tell us your Distro and then I can try searching for steps on how to possibly resolve this issue ^^ Oh sorry, did not read your issue correctly. You're *not* using the flatpak package. Yeah, then I am not sure.
Sign in to join this conversation.
No description provided.