File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ /*
6+ * This file is a part of the DiscordPHP project.
7+ *
8+ * Copyright (c) 2015-2022 David Cole <david.cole1340@gmail.com>
9+ * Copyright (c) 2020-present Valithor Obsidion <valithor@discordphp.org>
10+ *
11+ * This file is subject to the MIT license that is bundled
12+ * with this source code in the LICENSE.md file.
13+ */
14+
15+ namespace Discord \Repository ;
16+
17+ use Discord \Http \Endpoint ;
18+ use Discord \Parts \StickerPack ;
19+
20+ /**
21+ * Contains sticker packs of an application.
22+ *
23+ * @see StickerPack
24+ *
25+ * @since 10.47.0
26+ *
27+ * @method StickerPack|null get(string $discrim, $key)
28+ * @method StickerPack|null pull(string|int $key, $default = null)
29+ * @method StickerPack|null first()
30+ * @method StickerPack|null last()
31+ * @method StickerPack|null find(callable $callback)
32+ */
33+ class StickerPackRepository extends AbstractRepository
34+ {
35+ /**
36+ * The discriminator.
37+ *
38+ * @var string Discriminator.
39+ */
40+ protected $ discrim = 'id ' ;
41+
42+ /**
43+ * @inheritDoc
44+ */
45+ protected $ endpoints = [
46+ 'all ' => Endpoint::STICKER_PACKS ,
47+ 'get ' => Endpoint::STICKER_PACK ,
48+ ];
49+
50+ /**
51+ * @inheritDoc
52+ */
53+ protected $ class = StickerPack::class;
54+ }
You can’t perform that action at this time.
0 commit comments