Skip to content

Discord ချန်နယ် ထည့်သွင်းခြင်း

မစတင်မီ လိုအပ်သည့်အရာများ

လိုအပ်ချက်ရည်ရွယ်ချက်
Discord အကောင့်server၊ channel နှင့် developer application ဖန်တီးရန် အသုံးပြုသည်။
Discord server တစ်ခုBot သည် channel ကို access မလုပ်နိုင်မီ server ထဲသို့ ဝင်ထားရမည်။
Text channel တစ်ခုပုံများနှင့် ဖိုင်များကို ဤ channel သို့ ပို့မည်။
Discord Developer PortalApplication ဖန်တီးရန်၊ bot ဖန်တီးရန်နှင့် Bot Token ရယူရန် အသုံးပြုသည်။

ထည့်သွင်းမည့်နေရာ

  1. စနစ် ဆက်တင်များ ကိုဖွင့်ပါ။
  2. အပ်လုဒ် ဆက်တင်များ သို့သွားပါ။
  3. ညာဘက်အပေါ်ထောင့်ရှိ ချန်နယ် ထည့်ရန် ကိုနှိပ်ပါ။
  4. Discord ကိုရွေးပါ။

အကွက် ရည်ညွှန်းချက်

အကွက်လုပ်ဆောင်ချက်လိုအပ်မှု
ချန်နယ်အမည်ဤ channel အတွက် မှတ်မိလွယ်သောအမည်၊ ဥပမာ "Discord Primary"။လိုအပ်သည်
Bot TokenDiscord bot token။လိုအပ်သည်
Channel IDပစ်မှတ် text channel ၏ ID။လိုအပ်သည်
Proxy URL (ရွေးချယ်နိုင်သည်)Discord CDN access မတည်ငြိမ်သည့်အခါမှသာ အသုံးပြုပါ။ https:// ပါဝင်သော URL အပြည့်အစုံကို ထည့်ပါ။ရွေးချယ်နိုင်သည်

ပြင်ဆင်မှု အဆင့်များ

1. Discord Server နှင့် Text Channel ဖန်တီးပါ

  1. Discord ကိုဖွင့်ပါ။
  2. Server အသစ်တစ်ခုဖန်တီးပါ၊ သို့မဟုတ် သင်ပိုင်ဆိုင်ထားသော server တစ်ခုကို အသုံးပြုပါ။
  3. ထို server ထဲတွင် text channel တစ်ခု ဖန်တီးပါ။

Server ဖန်တီးခြင်း

2. Discord Developer Portal တွင် Bot ဖန်တီးပါ

  1. Discord Developer Portal ကိုဖွင့်ပါ: https://discord.com/developers/applications
  2. New Application ကိုနှိပ်ပါ။
  3. Application name ထည့်ပြီး application ကိုဖန်တီးပါ။
  4. ဘယ်ဘက် sidebar မှ Bot စာမျက်နှာကိုဖွင့်ပါ။
  5. Bot စာမျက်နှာတွင် token ကို generate သို့မဟုတ် reset လုပ်ပါ။
  6. Token ကိုသိမ်းထားပါ။

ဤ token သည် ImgHost ထဲတွင် ထည့်ရမည့် Bot Token ဖြစ်သည်။

Bot token ကြည့်ရှုခြင်း

  1. ဘယ်ဘက် sidebar မှ OAuth2 စာမျက်နှာကိုဖွင့်ပါ။
  2. Scopes အောက်တွင် bot ကိုရွေးပါ။
  3. Permission area တွင် အောက်ပါ permission များကို enable လုပ်ပါ။
Permissionလိုအပ်မှု
View Channelsဟုတ်သည်
Send Messagesဟုတ်သည်
Attach Filesဟုတ်သည်
Read Message Historyဟုတ်သည်
  1. စာမျက်နှာအောက်ခြေတွင် integration type သည် Guild Install ဖြစ်ကြောင်း အတည်ပြုပါ။
  2. Generated URL ကိုကူးယူပါ။
  3. ထို URL ကို browser တွင်ဖွင့်ပါ။
  4. ပစ်မှတ် server ကိုရွေးပါ။
  5. Authorization flow ကိုပြီးဆုံးအောင် ဆောင်ရွက်ပါ။

OAuth2 တွင် bot permission ရွေးချယ်ခြင်း

Bot ကို channel သို့ ဖိတ်ခေါ်ခြင်း

4. Developer Mode ကို Enable လုပ်ပြီး Channel ID ကိုကူးယူပါ

  1. Discord ၏ ဘယ်ဘက်အောက်ထောင့်တွင် သင်၏ avatar ဘေးရှိ gear icon ကိုနှိပ်ပါ။
  2. ဘယ်ဘက် sidebar မှ Advanced ကိုဖွင့်ပါ။
  3. Developer Mode ကို enable လုပ်ပါ။
  4. ပစ်မှတ် text channel သို့ ပြန်သွားပါ။
  5. ချန်နယ်အမည် ကို right-click နှိပ်ပါ။
  6. Copy Channel ID ကိုနှိပ်ပါ။

ကူးယူထားသော နံပါတ်သည် ImgHost လိုအပ်သည့် Channel ID ဖြစ်သည်။

Developer mode enable လုပ်ခြင်း

Channel ID ကူးယူခြင်း

5. ImgHost တွင် Discord Channel ကိုဖြည့်ပါ

Channel configuration dialog သို့ ပြန်သွားပြီး အကွက်များကို အောက်ပါအတိုင်း ဖြည့်ပါ။

UI အကွက်တန်ဖိုး
ချန်နယ်အမည်စိတ်ကြိုက် ချန်နယ်အမည်၊ ဥပမာ DiscordPrimary
Bot TokenDiscord Developer Portal ၏ Bot စာမျက်နှာမှ သိမ်းထားသော token။
Channel IDDiscord မှ သင်ကူးယူထားသော channel ID။
Proxy URL (ရွေးချယ်နိုင်သည်)လိုအပ်မှသာ ထည့်ပါ။ ဥပမာ https://your-proxy.example.com.

ပြီးပါက Save ကိုနှိပ်ပါ။

Discord channel configuration ထည့်ခြင်း

အတည်ပြုနည်း

စစ်ဆေးချက်အတည်ပြုနည်း
ချန်နယ်ကတ် ပေါ်လာသည်သိမ်းပြီးနောက် အပ်လုဒ် ဆက်တင်များ စာမျက်နှာတွင် Discord ချန်နယ်ကတ် ပေါ်လာသင့်သည်။
Channel ကို enable လုပ်နိုင်သည်Active switch သည် ဖွင့်ထားသည့်အခြေအနေတွင် ရှိသင့်သည်။
Configuration သိမ်းထားသည်Detail view တွင် Bot Token နှင့် Channel ID သိမ်းထားကြောင်း ပြသသင့်သည်။
Upload အလုပ်လုပ်သည်စမ်းသပ်ပုံတစ်ပုံကို အပ်လုဒ်လုပ်ပြီး ၎င်းသည် ပစ်မှတ် Discord text channel တွင် ပေါ်လာကြောင်း အတည်ပြုပါ။

အမြန် စစ်ဆေးစာရင်း

text
Create a Discord server
-> Create a text channel
-> Create a bot in the Discord Developer Portal
-> Save the Bot Token from the Bot page
-> In OAuth2, select bot, View Channels, Send Messages, Attach Files, and Read Message History
-> Copy the generated URL and authorize the bot for the target server
-> Make sure the target text channel grants the same permissions
-> Enable Developer Mode
-> Right-click the target text channel and copy the Channel ID
-> Enter the Bot Token and Channel ID in ImgHost
-> Save and upload a test image

ကိုးကားချက်များ

  1. Discord Developers Getting Started: https://docs.discord.com/developers/quick-start/getting-started
  2. Discord Help - Where can I find my User/Server/Message ID: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID

Released as user documentation for ImgHost.