Discord node#
ใช้ Discord node เพื่อทำงานอัตโนมัติใน Discord และผสาน Discord เข้ากับแอปพลิเคชันอื่นๆ n8n มีการรองรับฟีเจอร์ต่างๆ ของ Discord ในตัวมากมาย รวมถึงการส่งข้อความในช่อง Discord และการจัดการช่องต่างๆ
ในหน้านี้ คุณจะพบรายการ operations ที่ Discord node รองรับ และลิงก์ไปยังแหล่งข้อมูลเพิ่มเติม
Credentials
โปรดดู Discord credentials สำหรับคำแนะนำในการตั้งค่าการยืนยันตัวตน
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
Operations#
- Channel
- Create
- Delete
- Get
- Get Many
- Update
- Message
- Delete
- Get
- Get Many
- React with Emoji
- Send
- Send and Wait for Response
- Member
- Get Many
- Role Add
- Role Remove
การรอการตอบกลับ (Waiting for a response)#
โดยการเลือก operation Send and Wait for a Response คุณสามารถส่งข้อความและหยุดการทำงานของ workflow ชั่วคราวจนกว่าจะมีคนยืนยันการกระทำหรือให้ข้อมูลเพิ่มเติม
Response Type#
คุณสามารถเลือกประเภทของการรอและการอนุมัติได้ดังนี้:
- Approval: ผู้ใช้สามารถอนุมัติหรือไม่อนุมัติจากภายในข้อความ
- Free Text: ผู้ใช้สามารถส่งการตอบกลับพร้อมแบบฟอร์ม
- Custom Form: ผู้ใช้สามารถส่งการตอบกลับพร้อมแบบฟอร์มที่กำหนดเอง
คุณสามารถปรับแต่งพฤติกรรมการรอและการตอบกลับได้ขึ้นอยู่กับประเภทการตอบกลับที่คุณเลือก คุณสามารถกำหนดค่าตัวเลือกเหล่านี้ในประเภทการตอบกลับใดๆ ข้างต้น:
- Limit Wait Time: กำหนดว่า workflow จะกลับมาทำงานต่อโดยอัตโนมัติหลังจากหมดเวลาที่กำหนดหรือไม่ ซึ่งอาจเป็นช่วงเวลาหรือเวลาที่ระบุเจาะจง
- Append n8n Attribution: กำหนดว่าจะระบุในข้อความว่าถูกส่งโดยอัตโนมัติด้วย n8n (เปิด) หรือไม่ (ปิด)
การปรับแต่งการตอบกลับแบบ Approval (Approval response customization)#
เมื่อใช้ประเภทการตอบกลับแบบ Approval คุณสามารถเลือกได้ว่าจะแสดงเฉพาะปุ่มอนุมัติ หรือทั้งปุ่มอนุมัติ และ ปุ่มไม่อนุมัติ
คุณยังสามารถปรับแต่งข้อความบนปุ่มที่คุณใส่ได้
การปรับแต่งการตอบกลับแบบ Free Text (Free Text response customization)#
เมื่อใช้ประเภทการตอบกลับแบบ Free Text คุณสามารถปรับแต่งข้อความบนปุ่มข้อความ, ชื่อและคำอธิบายของฟอร์ม, และข้อความบนปุ่มตอบกลับได้
การปรับแต่งการตอบกลับแบบ Custom Form (Custom Form response customization)#
เมื่อใช้ประเภทการตอบกลับแบบ Custom Form คุณสร้างฟอร์มโดยใช้ฟิลด์และตัวเลือกที่คุณต้องการ
คุณสามารถปรับแต่งองค์ประกอบแต่ละอย่างของฟอร์มด้วยการตั้งค่าที่ระบุไว้ใน n8n Form trigger's form elements หากต้องการเพิ่มฟิลด์เพิ่มเติม ให้เลือกปุ่ม Add Form Element
คุณยังสามารถปรับแต่งข้อความบนปุ่มข้อความ, ชื่อและคำอธิบายของฟอร์ม, และข้อความบนปุ่มตอบกลับได้
Templates and examples#
Related resources#
โปรดดู Discord's documentation สำหรับข้อมูลเพิ่มเติมเกี่ยวกับบริการนี้
What to do if your operation isn't supported#
If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.
You can use the credential you created for this service in the HTTP Request node:
- In the HTTP Request node, select Authentication > Predefined Credential Type.
- Select the service you want to connect to.
- Select your credential.
Refer to Custom API operations for more information.
Common issues#
สำหรับข้อผิดพลาดหรือปัญหาทั่วไปและขั้นตอนการแก้ไขที่แนะนำ โปรดดูที่ Common Issues