Skip to content

Commit

Permalink
📝 Add Message::url() to the message documentation (#98)
Browse files Browse the repository at this point in the history
* 📝 Add a standalone section for `Message::body()`
  • Loading branch information
end3r-man authored Jun 25, 2024
1 parent 83c65f4 commit 297ec16
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion content/docs/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Message::make()->content('Hello world!');
## Available Methods

- [Title](#content-title)
- [URL](#content-url)
- [Content](#content-content)
- [Body](#content-body)
- [Username](#content-username)
- [Avatar](#content-avatar)
- [TTS](#content-tts)
Expand All @@ -67,6 +69,7 @@ Message::make()->content('Hello world!');
- [Select Menus](#content-select-menus)
- [Menu Types](#content-menu-types)


### Title

Set the title of the embed:
Expand All @@ -77,6 +80,17 @@ $this
->title('Example');
```

### URL

Set the url of the title:

```php
$this
->message('Hello world!')
->title('Example')
->url('https://laracord.com');
```

### Content

Set the content of the embed. This can be used instead of passing content to `message` directly:
Expand All @@ -87,6 +101,16 @@ $this
->content('Hello world!');
```

### Body

Set the body of the embed, that send a message before the embed:

```php
$this
->message('Hello world!')
->body('@everyone');
```

### Username

By default, this is the username of your bot application.
Expand Down Expand Up @@ -381,4 +405,4 @@ $this
->select(type: 'mentionable', route: 'handleMentionable')
->select(type: 'role', route: 'handleRole')
->select(type: 'user', route: 'handleUser');
```
```

0 comments on commit 297ec16

Please sign in to comment.