<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/AR/setDiscordRichPresenceSmallAsset?action=history&amp;feed=atom</id>
	<title>AR/setDiscordRichPresenceSmallAsset - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/AR/setDiscordRichPresenceSmallAsset?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setDiscordRichPresenceSmallAsset&amp;action=history"/>
	<updated>2026-04-29T00:26:58Z</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/setDiscordRichPresenceSmallAsset&amp;diff=82360&amp;oldid=prev</id>
		<title>O22: /* Syntax */</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setDiscordRichPresenceSmallAsset&amp;diff=82360&amp;oldid=prev"/>
		<updated>2025-08-06T01:40:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Syntax&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:40, 6 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Syntax&lt;/del&gt;==  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;التركيب&lt;/ins&gt;==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;bool setDiscordRichPresenceSmallAsset(string assetImage, string text)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;bool setDiscordRichPresenceSmallAsset(string assetImage, string text)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-82354:rev-82360 --&gt;
&lt;/table&gt;</summary>
		<author><name>O22</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/setDiscordRichPresenceSmallAsset&amp;diff=82354&amp;oldid=prev</id>
		<title>O22: Created page with &quot;__NOTOC__  {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| باستخدام هذه الدالة، يمكنك تعيين صورة الأصل الصغيرة (small asset) للتطبيق. الحد الأقصى لحجم الصور هو ''1024 x1024''، والحد الأدنى هو ''512...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/setDiscordRichPresenceSmallAsset&amp;diff=82354&amp;oldid=prev"/>
		<updated>2025-08-06T00:11:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} {{Important Note|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام &lt;a href=&quot;/wiki/AR/setDiscordApplicationID&quot; title=&quot;AR/setDiscordApplicationID&quot;&gt;setDiscordApplicationID&lt;/a&gt;}} {{New feature/item|3.0161|1.6.0|22270| باستخدام هذه الدالة، يمكنك تعيين صورة الأصل الصغيرة (small asset) للتطبيق. الحد الأقصى لحجم الصور هو &amp;#039;&amp;#039;1024 x1024&amp;#039;&amp;#039;، والحد الأدنى هو &amp;#039;&amp;#039;512...&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|لاستخدام هذه الدالة، يجب عليك إعداد تطبيقك الخاص باستخدام [[AR/setDiscordApplicationID|setDiscordApplicationID]]}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22270|&lt;br /&gt;
باستخدام هذه الدالة، يمكنك تعيين صورة الأصل الصغيرة (small asset) للتطبيق.&lt;br /&gt;
الحد الأقصى لحجم الصور هو ''1024 x1024''، والحد الأدنى هو ''512 x512''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDiscordRichPresenceSmallAsset(string assetImage, string text)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[DiscordRPC]]:setSmallAsset}}&lt;br /&gt;
&lt;br /&gt;
===المعطيات المطلوبة===&lt;br /&gt;
*'''assetImage''': سلسلة نصية تحتوي على مفتاح الصورة التي قمت برفعها في قائمة الأصول الخاصة بتطبيقك.&lt;br /&gt;
*'''text''': سلسلة نصية تُعرض عندما يقوم أحدهم بتحويم الماوس فوق الصورة الكبيرة في Discord.&lt;br /&gt;
&lt;br /&gt;
===القيم المرجعة===&lt;br /&gt;
تعيد الدالة ''true'' إذا نجحت العملية، و ''false'' خلاف ذلك.&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
المثال يقوم بتعيين الصورة الكبيرة إلى my_small_logo.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;setsmalllogo&amp;quot;,&lt;br /&gt;
    function ()&lt;br /&gt;
        if isDiscordRichPresenceConnected() then &lt;br /&gt;
            setDiscordRichPresenceSmallAsset(&amp;quot;my_small_logo&amp;quot;, &amp;quot;!هذا هو شعاري الصغير&amp;quot;)&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:SetDiscordRichPresenceAsset]]&lt;br /&gt;
[[de:setDiscordRichPresenceAsset]]&lt;br /&gt;
[[hu:setDiscordRichPresenceAsset]]&lt;br /&gt;
[[pl:setDiscordRichPresenceAsset]]&lt;br /&gt;
[[ro:setDiscordRichPresenceAsset]]&lt;br /&gt;
[[ru:SetDiscordRichPresenceAsset]]&lt;br /&gt;
[[PT-BR:SetDiscordRichPresenceAsset]]&lt;/div&gt;</summary>
		<author><name>O22</name></author>
	</entry>
</feed>