Skip to content

Commit

Permalink
Fix incorrect return types
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Nov 20, 2024
1 parent ea4d818 commit d695e1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Discord/Parts/Channel/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ public function limitDelete(int $value, ?string $reason = null): PromiseInterfac
* @return PromiseInterface<Collection<Message>>
* @todo Make it in a trait along with Thread
*/
public function getMessageHistory(array $options = []): Promise
public function getMessageHistory(array $options = []): PromiseInterface
{
if (! $this->is_private && $botperms = $this->getBotPermissions()) {
if (! $botperms->read_message_history) {
Expand Down
2 changes: 1 addition & 1 deletion src/Discord/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function escapeMarkdown(string $text): string
* @since 10.0.0 Handle `$canceller` internally, use `cancel()` from the returned promise.
* @since 7.1.0
*/
function deferFind($array, callable $callback, $loop = null): Promise
function deferFind($array, callable $callback, $loop = null): PromiseInterface
{
$cancelled = false;
$deferred = new Deferred(function () use (&$cancelled) {
Expand Down

0 comments on commit d695e1d

Please sign in to comment.