fix: docs
This commit is contained in:
parent
c0296f698a
commit
a48bb14509
2 changed files with 3 additions and 2 deletions
|
|
@ -77,12 +77,14 @@ impl Handler {
|
|||
- `reactions`: map<string, i64> (이모지 - 개수)
|
||||
- `channel`: string (채널 ID)
|
||||
- `category`: string (카테고리 ID, 없을 시 UNIT)
|
||||
- `removed`: bool (리액션 제거 여부)
|
||||
|
||||
`result("채널ID", 리액션 개수, "메시지에 사용될 아이콘(이모지 권장)")` 를 리턴해주세요(unit이나 다른 값 반환 시 무시됩니다)
|
||||
\*리액션 제거 시 무조건 값을 리턴해줘야 컷 아래로 내려갔을때 메시지가 수정됩니다
|
||||
|
||||
예시 스크립트:
|
||||
```rs
|
||||
if reactions["⭐"] >= 3 {
|
||||
if reactions["⭐"] >= 3 || removed {
|
||||
return result("0000000000000000000", reactions["⭐"], "⭐")
|
||||
}
|
||||
```"#,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use serenity::{
|
|||
Reaction, StickerFormatType, StickerItem, Webhook, WebhookId,
|
||||
},
|
||||
async_trait,
|
||||
futures::lock::Mutex,
|
||||
small_fixed_array::{FixedArray, FixedString},
|
||||
};
|
||||
use sqlx::{PgExecutor, PgPool};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue