diff --git a/src/Discord/Parts/WebSockets/MessageReaction.php b/src/Discord/Parts/WebSockets/MessageReaction.php index a5d5982ba..a54d47f18 100644 --- a/src/Discord/Parts/WebSockets/MessageReaction.php +++ b/src/Discord/Parts/WebSockets/MessageReaction.php @@ -216,10 +216,14 @@ protected function getMemberAttribute(): ?Member /** * Gets the emoji attribute. * - * @return Emoji + * @return Emoji|null */ - protected function getEmojiAttribute(): Emoji + protected function getEmojiAttribute(): ?Emoji { + if (! isset($this->attributes['emoji'])) { + return null; + } + return $this->factory->part(Emoji::class, (array) $this->attributes['emoji'], true); }