Skip to content

Commit

Permalink
Merge pull request #131 from D1veer/patch-2
Browse files Browse the repository at this point in the history
Update API.md
  • Loading branch information
JaxkDev authored Jul 22, 2024
2 parents 913ebfa + 0463969 commit f03b4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ the message did not get sent, and a `ApiRejection` (exception) will be passed ba
/** @var $api \JaxkDev\DiscordBot\Plugin\Api */
$api = $DiscordBotPluginInstance->getApi();
/** @var $promise \JaxkDev\DiscordBot\Libs\React\Promise\PromiseInterface */
$promise = $api->sendMessage("guild_id or null for DMs", "channel_id or user_id for DMs", "Hello world !"));
$promise = $api->sendMessage("guild_id or null for DMs", "channel_id or user_id for DMs", "Hello world !");

// You could do other things here if necessary
// but be sure to register your callbacks before finishing.
Expand Down

0 comments on commit f03b4e0

Please sign in to comment.