Skip to content

Commit 25cb25d

Browse files
committed
support for user,role,mention,channe menu
1 parent 5f83a81 commit 25cb25d

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

guide/Interaction/modal.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ Used to send a modal, it must be used inside interaction like button/menu/slash
3232
...
3333
}
3434
35+
{input=
36+
{name=User/Role/Mention/Channel Menu name}
37+
{type=user or role or mention or channel}
38+
{id=menu id}
39+
{desc=Menu description}
40+
41+
{selected=user id or role id or channel id} // for user/role/channel menu
42+
...
43+
44+
{selected_user=user id for mention} // for mention menu
45+
{selected_role=role id for mention} // for mention menu
46+
...
47+
}
48+
49+
3550
{input=
3651
{name=Input name}
3752
{id=Input id}
@@ -44,11 +59,11 @@ Used to send a modal, it must be used inside interaction like button/menu/slash
4459
must be `yes` or `no`, the default is `yes`<br\>
4560

4661
##### **type**
47-
property must be `short` or `long` or `menu`, the default is `short`, `short` means it accept only one line as input
48-
but `long` means it accept multiple lines. and `menu` to specify that input as menu instead of text input
62+
property must be `short`, `long`, `menu/user/role/mention/channel` , the default is `short`, `short` means it accept only one line as input
63+
but `long` means it accept multiple lines. and `menu/user/role/mention/channel` to specify that input as menu instead of text input
4964

5065
##### **input**
51-
it can be multiple but max of 5 inputs
66+
it can be multiple but max of 5 inputs, i.e (3 text inputs, 2 menus)
5267

5368
### Example
5469
#### Code

0 commit comments

Comments
 (0)