كيف تستضيف صور لديسكورد وFiveM
إذا بانرات البوت أو صور الترحيب تنكسر، غالباً المشكلة من الرابط مو من ديسكورد. الدليل يشرح استضافة صور برابط مباشر دائم.
ليش روابط مرفقات ديسكورد تفشل
لما ترفع ملف داخل ديسكورد وتنسخ عنوان الصورة، غالباً تاخذ رابط من cdn.discordapp.com. هالروابط مصممة لتوصيل ديسكورد نفسه وقد تنتهي صلاحيتها أو ترتبط بالرسالة الأصلية.
البوتات والإعدادات (وملفات FiveM) تحتاج رابط يرجع صورة دائماً. هنا تجي استضافة الوسائط: ترفع مرة لمكتبتك، وتعيد استخدام نفس الرابط.
استضف صورة بثلاث خطوات
- أنشئ حساب مجاني على AHD Storage.
- افتح المكتبة وأسقط PNG أو JPG أو WebP.
- اضغط نسخ على بطاقة الملف — هذا رابطك الدائم.
https://cdn.ahdstg.com/v/Ab12Cd34/file.png
نسخ
للتجربة السريعة على الموقع:
<img src="https://ahdstg.com/assets/brand-character.png" alt="AHD Storage" width="256" />
مثال discord.js
بدّل IMAGE_URL برابطك من AHD:
import { Client, GatewayIntentBits, EmbedBuilder } from "discord.js";
const IMAGE_URL = "https://cdn.ahdstg.com/v/YOUR_ID/welcome-banner.png";
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.once("ready", async () => {
const channel = await client.channels.fetch(process.env.CHANNEL_ID);
const embed = new EmbedBuilder()
.setColor(0xb91c2c)
.setTitle("أهلاً")
.setImage(IMAGE_URL);
await channel.send({ embeds: [embed] });
});
client.login(process.env.DISCORD_TOKEN);
ترحيب — الصورة من رابط استضافة مباشر.
قبل ما تلصق الرابط
- افتح الرابط بنافذة خاصة — لازم تشوف الصورة وحدها مو صفحة معرض.
- تأكد إن النوع
image/pngأو jpeg أو webp. - لا تحذف الملف من مكتبتك وإلا تنكسر كل الرسائل اللي تستخدمه.
أسئلة شائعة
ليش روابط صور ديسكورد تتوقف؟
روابط المرفقات قد تنتهي. استخدم رابط استضافة دائم بدل نسخ من رسالة ديسكورد.
أقدر أستخدم روابط AHD في البوتات وFiveM؟
نعم — أي مكان يقبل رابط https:// لصورة مباشرة.
في استضافة مجانية؟
نعم. أنشئ حساب مجاني وارفع وانسخ الرابط.
أدلة ذات صلة
How to Host Images for Discord
If bot banners and welcome pictures keep breaking, the link is usually the problem. Use permanent direct image hosting for Discord, FiveM, and configs.
Why Discord attachment links fail
Copying an image address from a Discord upload often gives a cdn.discordapp.com URL that can expire or depend on the original message.
Bots, configs, and FiveM UIs need a URL that still returns an image months later. Upload once to your library and reuse one stable link.
Host an image in 3 steps
- Create a free account on AHD Storage.
- Drop a PNG, JPG, or WebP into the media library.
- Click Copy on the file card for your permanent link.
https://cdn.ahdstg.com/v/Ab12Cd34/file.png
Copy
<img src="https://ahdstg.com/assets/brand-character.png" alt="AHD Storage" width="256" />
Working discord.js example
import { Client, GatewayIntentBits, EmbedBuilder } from "discord.js";
const IMAGE_URL = "https://cdn.ahdstg.com/v/YOUR_ID/welcome-banner.png";
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.once("ready", async () => {
const channel = await client.channels.fetch(process.env.CHANNEL_ID);
const embed = new EmbedBuilder().setColor(0xb91c2c).setTitle("Welcome").setImage(IMAGE_URL);
await channel.send({ embeds: [embed] });
});
client.login(process.env.DISCORD_TOKEN);
Welcome — image loaded from a direct host URL.
Checklist
- Open the URL privately — you should see the image alone.
- Confirm an image Content-Type.
- Keep the file in your library or every consumer breaks.
FAQ
Why do Discord image links stop working?
Attachment CDN links can expire. Use a permanent host URL.
Can I use AHD links in bots and FiveM?
Yes — anywhere that accepts a direct https image URL.
Is there a free plan?
Yes. Create a free account.