mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
Remove PresencePlaceholders and replace it by ReplacePlaceholders
This commit is contained in:
@@ -184,17 +184,12 @@ function Adjustments:ReplacePlaceholders(text)
|
||||
return text
|
||||
end
|
||||
|
||||
function Adjustments:PresencePlaceholders()
|
||||
local presence = self:ReplacePlaceholders(Config.DiscordActivity.presence)
|
||||
return presence
|
||||
end
|
||||
|
||||
function Adjustments:DiscordPresence()
|
||||
if Config.DiscordActivity.appId ~= 0 then
|
||||
CreateThread(function()
|
||||
while true do
|
||||
SetDiscordAppId(Config.DiscordActivity.appId)
|
||||
SetRichPresence(self:PresencePlaceholders())
|
||||
SetRichPresence(self:ReplacePlaceholders(Config.DiscordActivity.presence))
|
||||
SetDiscordRichPresenceAsset(Config.DiscordActivity.assetName)
|
||||
SetDiscordRichPresenceAssetText(self:ReplacePlaceholders(Config.DiscordActivity.assetText))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user