make discord presence id a constant

This commit is contained in:
csd4ni3l
2025-05-01 19:08:07 +02:00
parent 04222b4999
commit 9733602fa3
3 changed files with 6 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import copy, pypresence, json, os
import arcade, arcade.gui
from utils.constants import button_style, dropdown_style, slider_style, settings
from utils.constants import button_style, dropdown_style, slider_style, settings, discord_presence_id
from utils.utils import FakePyPresence
from utils.preload import button_texture, button_hovered_texture, theme_sound
@@ -180,7 +180,7 @@ class Settings(arcade.gui.UIView):
self.pypresence_client.close()
del self.pypresence_client
try:
self.pypresence_client = pypresence.Presence(1363780625928028200)
self.pypresence_client = pypresence.Presence(discord_presence_id)
self.pypresence_client.connect()
self.pypresence_client.update(state='In Settings', details='Modifying Settings', start=start_time)
self.pypresence_client.start_time = start_time