Skip to content

Commit 9c2d662

Browse files
committed
Add deprecation notice to Factory::create
1 parent dc0c337 commit 9c2d662

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Discord/Factory/Factory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function __construct(Discord $discord)
5050
*
5151
* @return Part|AbstractRepository The object.
5252
* @throws \Exception
53+
*
54+
* @deprecated 10.37.4 Use `Factory::part()` or `Factory::repository()`
5355
*/
5456
public function create(string $class, $data = [], bool $created = false)
5557
{

0 commit comments

Comments
 (0)