-
Flutter와 Discode web-hook 설정flutter 2025. 3. 24. 14:49반응형
오늘은 디스 코드 웹훅 설정을 알아볼게요!
엄청 간단하니 따라하기 쉬울꺼에요
먼저
설정 아이콘을 선택
연동으로 넘어와 웹후크 만들기
원하는 이름으로 설정후
선택하면
웹후크 URL이 생성됩니다생성된 url을 이용해서 Dart에서 api를 연동합니다.
보낼때 field 설정은 아래 링크를 참고해 주세요
"embeds": [ { "title": "📌 웹훅 테스트", "description": "이것은 테스트 메시지입니다.", "color": 5814783, // 파란색 (#58ACFA) "fields": [ { "name": "이름", "value": "홍길동", "inline": true }, { "name": "나이", "value": "29", "inline": true }, { "name": "소개", "value": "안녕하세요! 저는 개발자입니다.", "inline": false } ], "footer": { "text": "Powered by Webhook", "icon_url": "https://i.imgur.com/fKL31aD.jpg" }, "timestamp": "2025-03-24T12:00:00.000Z" } ]
https://birdie0.github.io/discord-webhooks-guide/structure/embed/fields.html
fields - Discord Webhooks Guide
Allows you to use multiple title + description blocks in embed. fields is an array of field objects. Each object includes three values:name - sets name for field object. Required;value - sets description for field object. Required;inline - if true then set
birdie0.github.io
색상은https://birdie0.github.io/discord-webhooks-guide/structure/embed/color.html
color - Discord Webhooks Guide
Sets color for webhook's embed. It equals 0 (transparent) by default. Color requires number instead hex code, so you have to convert hexadecimal color code to decimal number. Color can be defined as number 65280 and as string "65280".I recommend to use Spy
birdie0.github.io
여길 참고해서 보내줍니다.
결과 페이지
반응형'flutter' 카테고리의 다른 글
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libtensorflowlite_c.so': dlopen failed: library "libtensorflowlite_c.so" not found (0) 2025.04.04 pub.dev - flutter package publish (패키지 올리기) (1) 2025.03.06 생체 인증 추가 (0) 2025.02.25 Flutter WebView 버전 이슈 대응 (1) 2025.02.20 RiverPod 배우기 (0) 2025.02.13