Skip to content

Commit a3f24d5

Browse files
committed
docs: add attachment option
1 parent 722eb42 commit a3f24d5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/content/docs/api/commands.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ final commandBuilder = CommandBuilder()
187187

188188
Basic types are available to define options for your commands.
189189

190-
:::code-group labels=[String, Integer, Double, Boolean]
190+
:::code-group labels=[String, Integer, Double, Boolean, Attachment]
191191

192192
```dart
193193
Option.string(
@@ -221,6 +221,14 @@ Option.boolean(
221221
);
222222
```
223223

224+
```dart
225+
Option.attachment(
226+
name: 'attachment',
227+
description: 'Your attachment',
228+
required: true
229+
);
230+
```
231+
224232
:::
225233

226234
Mentionable types are available to define options for your commands.

0 commit comments

Comments
 (0)