Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 70929f2

Browse files
committed
[ci skip] update readme
1 parent 5170089 commit 70929f2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ You can either copy the PHP file directly into your project or _preferable_ just
1818
It is fairly easy to use. I'll throw in an example.
1919

2020
```php
21-
use \DiscordWebhooks\Client;
22-
use \DiscordWebhooks\Embed;
21+
use Discord\Webhooks\Client;
22+
use Discord\Webhooks\Embed;
2323

2424
$webhook = new Client('DISCORD_WEBHOOK_URL');
2525
$embed = new Embed();
2626

27-
$embed->description('This is an embed');
27+
$embed->setDescription('This is an embed');
2828

29-
$webhook->username('Bot')->message('Hello, Human!')->embed($embed)->send();
29+
$webhook->setUsername('Bot')->setMessage('Hello, Human!')->setEmbed($embed)->sendContent();
3030
```
3131

3232
## License

0 commit comments

Comments
 (0)