<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/AR/getDiscordRichPresenceUserID?action=history&amp;feed=atom</id>
	<title>AR/getDiscordRichPresenceUserID - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/AR/getDiscordRichPresenceUserID?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getDiscordRichPresenceUserID&amp;action=history"/>
	<updated>2026-05-18T19:40:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/getDiscordRichPresenceUserID&amp;diff=82359&amp;oldid=prev</id>
		<title>O22: Created page with &quot;__NOTOC__  {{Client function}} {{Important Note|ستُعيد الدالة معرف المستخدم بشكل صحيح إذا كان المستخدم قد منح الموافقة مسبقًا ومتصل بتطبيق Rich Presence.}} {{New feature/item|3.0161|1.6.0|22342| تُعيد الدالة معرف مستخدم Discord الخاص بالعميل. }}   ==التركيب==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string getDiscordRichPresenceUserID() &lt;/syntaxhighlight&gt;   ===الق...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/getDiscordRichPresenceUserID&amp;diff=82359&amp;oldid=prev"/>
		<updated>2025-08-06T01:39:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} {{Important Note|ستُعيد الدالة معرف المستخدم بشكل صحيح إذا كان المستخدم قد منح الموافقة مسبقًا ومتصل بتطبيق Rich Presence.}} {{New feature/item|3.0161|1.6.0|22342| تُعيد الدالة معرف مستخدم Discord الخاص بالعميل. }}   ==التركيب==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string getDiscordRichPresenceUserID() &amp;lt;/syntaxhighlight&amp;gt;   ===الق...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Important Note|ستُعيد الدالة معرف المستخدم بشكل صحيح إذا كان المستخدم قد منح الموافقة مسبقًا ومتصل بتطبيق Rich Presence.}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22342|&lt;br /&gt;
تُعيد الدالة معرف مستخدم Discord الخاص بالعميل.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==التركيب== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getDiscordRichPresenceUserID()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===القيم المرجعة===&lt;br /&gt;
ستعيد سلسلة فارغة (&amp;quot;&amp;quot;) إذا لم يمنح المستخدم الموافقة أو قام بتعطيل خيار تزامن Rich Presence. وإلا، ستعيد المعرف كسلسلة نصية.&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
يعرض هذا المثال معرف المستخدم الخاص به في الدردشة إذا كان قد منح الإذن بمشاركة البيانات. وإلا، سيظهر له رسالة مناسبة.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getmyuserid&amp;quot;,&lt;br /&gt;
    function ()&lt;br /&gt;
        if isDiscordRichPresenceConnected() then&lt;br /&gt;
            local id = getDiscordRichPresenceUserID() &lt;br /&gt;
            if id == &amp;quot;&amp;quot; then &lt;br /&gt;
                outputChatBox(&amp;quot;لم تسمح بمشاركة بيانات Discord! قم بمنح الإذن في الإعدادات!&amp;quot;)&lt;br /&gt;
            else &lt;br /&gt;
                outputChatBox(&amp;quot;معرف Discord الخاص بك: &amp;quot;..id)&lt;br /&gt;
            end &lt;br /&gt;
        end &lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==انظر ايضاً==&lt;br /&gt;
{{AR/Client_Discord_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:IsDiscordRichPresenceConnected]]&lt;br /&gt;
[[de:isDiscordRichPresenceConnected]]&lt;br /&gt;
[[hu:isDiscordRichPresenceConnected]]&lt;br /&gt;
[[pl:isDiscordRichPresenceConnected]]&lt;br /&gt;
[[ro:isDiscordRichPresenceConnected]]&lt;br /&gt;
[[ru:IsDiscordRichPresenceConnected]]&lt;br /&gt;
[[PT-BR:IsDiscordRichPresenceConnected]]&lt;/div&gt;</summary>
		<author><name>O22</name></author>
	</entry>
</feed>