|
17 | 17 | use Discord\Parts\Guild\Emoji; |
18 | 18 | use Discord\Parts\Guild\Guild; |
19 | 19 | use Discord\Parts\Part; |
| 20 | +use Discord\Parts\Thread\Thread; |
20 | 21 | use Discord\Parts\User\Member; |
21 | 22 | use Discord\Parts\User\User; |
22 | 23 | use React\Promise\ExtendedPromiseInterface; |
|
31 | 32 | * |
32 | 33 | * @since 5.0.0 |
33 | 34 | * |
34 | | - * @property string|null $user_id ID of the user that performed the reaction. |
35 | | - * @property User|null $user User that performed the reaction. |
36 | | - * @property string $channel_id ID of the channel that the reaction was performed in. |
37 | | - * @property-read Channel|Thread $channel Channel that the reaction was performed in. |
38 | | - * @property string $message_id ID of the message that the reaction was placed on. |
39 | | - * @property Message|null $message Message that the reaction was placed on, null if not cached. |
40 | | - * @property string|null $guild_id ID of the guild that owns the channel. |
41 | | - * @property-read Guild|null $guild Guild that owns the channel. |
42 | | - * @property Member|null $member Member object of the user that performed the reaction, null if not cached or DM channel. |
43 | | - * @property Emoji|null $emoji The emoji that was used as the reaction. |
| 35 | + * @property string|null $user_id ID of the user that performed the reaction. |
| 36 | + * @property User|null $user User that performed the reaction. |
| 37 | + * @property string $channel_id ID of the channel that the reaction was performed in. |
| 38 | + * @property-read Channel|Thread|null $channel Channel that the reaction was performed in. |
| 39 | + * @property string $message_id ID of the message that the reaction was placed on. |
| 40 | + * @property Message|null $message Message that the reaction was placed on, null if not cached. |
| 41 | + * @property string|null $guild_id ID of the guild that owns the channel. |
| 42 | + * @property-read Guild|null $guild Guild that owns the channel. |
| 43 | + * @property Member|null $member Member object of the user that performed the reaction, null if not cached or DM channel. |
| 44 | + * @property Emoji|null $emoji The emoji that was used as the reaction. |
44 | 45 | * |
45 | 46 | * @property string $reaction_id ID of the reaction. |
46 | 47 | */ |
@@ -133,9 +134,9 @@ protected function getUserAttribute(): ?User |
133 | 134 | /** |
134 | 135 | * Gets the channel attribute. |
135 | 136 | * |
136 | | - * @return Channel|Thread |
| 137 | + * @return Channel|Thread|null |
137 | 138 | */ |
138 | | - protected function getChannelAttribute(): Part |
| 139 | + protected function getChannelAttribute(): ?Part |
139 | 140 | { |
140 | 141 | if ($guild = $this->guild) { |
141 | 142 | $channels = $guild->channels; |
|
0 commit comments