Skip to content

Commit bad30a1

Browse files
Apply suggestions from code review
Co-authored-by: Matouš Kučera <mk@kcra.me>
1 parent 11ebf4f commit bad30a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/paper/dev/api/command-api/basics/argument-suggestions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ The following overloads of the `SuggestionsBuilder#suggest` method add values th
5959
| suggest(int, Message) | Adds an int with a tooltip to the suggestions |
6060

6161
There are two ways of retrieving a `Message` instance:
62-
- Using `LiteralMessage`, which can be used for basic, non-formatted text
62+
- Using `LiteralMessage`, which can be used for basic, non-formatted text.
6363
- Using the `MessageComponentSerializer`, which can be used to serialize `Component` objects into `Message` objects.
6464

6565
For example, if you add a suggestion like this:
6666
```java
6767
builder.suggest("suggestion", MessageComponentSerializer.message().serialize(
68-
miniMessage().deserialize("<green>Suggestion tooltip")
68+
MiniMessage.miniMessage().deserialize("<green>Suggestion tooltip")
6969
));
7070
```
7171

0 commit comments

Comments
 (0)