@@ -133,9 +133,11 @@ the second field is a text input with a default value, and the third field is a
133
133
least 100 characters. The custom ID is set to ` modals-my_first_modal ` , which helps us identifying the modal when we use
134
134
a modal submission trigger for a custom command.
135
135
136
+ ![ My first modal example] ( modal_example.png )
137
+
136
138
## Multiple Components
137
139
138
- You learnt how to create messages with just one component attached to it, but the whole point of components is to have
140
+ You learned how to create messages with just one component attached to it, but the whole point of components is to have
139
141
* a lot* of them available. Let's start with adding some more buttons!
140
142
141
143
### More Buttons
@@ -199,7 +201,7 @@ created menu to the `"menu"` key of the complex message builder, and sending sai
199
201
200
202
### Ordering Components
201
203
202
- Let's say we want to play Tic Tac Toe. If we just add nine buttons into the same slice in our complex message builder,
204
+ Let's say we want to play Tic- Tac- Toe. If we just add nine buttons into the same slice in our complex message builder,
203
205
they will just fill the first row with five buttons, and the second row with four buttons, which is definitely not what
204
206
we are looking for. The solution is to tell YAGPDB precisely how the rows look like and then pass each row to the
205
207
` "button" ` or ` "menu" ` key.
@@ -215,7 +217,7 @@ we are looking for. The solution is to tell YAGPDB precisely how the rows look l
215
217
{{ sendMessage nil $message }}
216
218
```
217
219
218
- ![ Tic Tac Toe] ( tictactoe.png )
220
+ ![ Tic- Tac- Toe] ( tictactoe.png )
219
221
220
222
#### Action Rows
221
223
@@ -250,10 +252,10 @@ formula like reactions do. Emojis in components follow the [partial emoji
250
252
object] ( https://discord.com/developers/docs/resources/emoji#emoji-object ) structure, however only the ID * or* the Name
251
253
fields are required, depending on if you are using a custom emoji or not.
252
254
253
- | Field | Description |
254
- | ----- | ---------------------------------------------------------------------------------------------------- |
255
- | ID | ID of the emoji, only necessary when using Custom Emoji. |
256
- | Name | Name of the emoji, use the unicode character here. Only necessary when using builtin unicode emojis. |
255
+ | Field | Description |
256
+ | ----- | ----------------------------------------------------------------------------------------------------- |
257
+ | ID | ID of the emoji, only necessary when using Custom Emoji. |
258
+ | Name | Name of the emoji, use the unicode character here. Only necessary when using built-in unicode emojis. |
257
259
258
260
``` yag
259
261
{{ $unicodeEmojiButton := cbutton "emoji" (sdict "name" "😀") }}
0 commit comments