Skip to content

Commit

Permalink
fix application_commands method typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SQKo committed Sep 2, 2022
1 parent a4c76ff commit 85b6493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Discord/Parts/Guild/AuditLog/AuditLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function getGuildAttribute(): ?Guild
}

/**
* Returns a collection of webhooks found in the audit log.
* Returns a collection of application commands found in the audit log.
*
* @return Collection|Command[]
*/
Expand All @@ -77,7 +77,7 @@ protected function getApplicationCommandsAttribute(): Collection
$collection = Collection::for(Command::class);

foreach ($this->attributes['application_commands'] ?? [] as $application_commands) {
$collection->pushItem($this->factory->create(Webhook::class, $application_commands, true));
$collection->pushItem($this->factory->create(Command::class, $application_commands, true));
}

return $collection;
Expand Down

0 comments on commit 85b6493

Please sign in to comment.