Skip to content

Commit

Permalink
Merge branch 'master' into v11
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming authored Jan 8, 2025
2 parents a4ef2a7 + 92b4b56 commit b2dbd0a
Show file tree
Hide file tree
Showing 9 changed files with 567 additions and 486 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [valzargaming, Log1x]
patreon: DiscordPHP
9 changes: 3 additions & 6 deletions src/Discord/DiscordCommandClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public function __construct(array $options = [])
if (is_string($result)) {
$message
->reply($result)
->then(null, $this->commandClientOptions['internalRejectedPromiseHandler'])
->then();
->then(null, $this->commandClientOptions['internalRejectedPromiseHandler']);
}
}
});
Expand Down Expand Up @@ -161,8 +160,7 @@ public function __construct(array $options = [])

$message->channel
->sendEmbed($embed)
->then(null, $this->commandClientOptions['internalRejectedPromiseHandler'])
->then();
->then(null, $this->commandClientOptions['internalRejectedPromiseHandler']);

return;
}
Expand Down Expand Up @@ -208,8 +206,7 @@ public function __construct(array $options = [])

$message->channel
->sendEmbed($embed)
->then(null, $this->commandClientOptions['internalRejectedPromiseHandler'])
->then();
->then(null, $this->commandClientOptions['internalRejectedPromiseHandler']);
}, [
'description' => 'Provides a list of commands available.',
'usage' => '[command]',
Expand Down
8 changes: 4 additions & 4 deletions src/Discord/Helpers/CollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ interface CollectionInterface extends ArrayAccess, JsonSerializable, IteratorAgg
public function get(string $discrim, $key);
public function set($offset, $value);
public function pull($key, $default = null);
public function fill(array $items);
public function push(...$items);
public function pushItem($item);
public function fill(array $items): self;
public function push(...$items): self;
public function pushItem($item): self;
public function count(): int;
public function first();
public function last();
Expand All @@ -34,7 +34,7 @@ public function filter(callable $callback);
public function find(callable $callback);
public function clear(): void;
public function map(callable $callback);
public function merge($collection);
public function merge($collection): self;
public function toArray();
public function offsetExists($offset): bool;
#[\ReturnTypeWillChange]
Expand Down
Loading

0 comments on commit b2dbd0a

Please sign in to comment.