Fix Issue #446. RestUserMessage initializes _reactions even if there are no reactions so get doesn't cause exception.
This commit is contained in:
committed by
RogueException
parent
4665b63d27
commit
7e9491fb34
@@ -115,6 +115,8 @@ namespace Discord.Rest
|
|||||||
else
|
else
|
||||||
_reactions = ImmutableArray.Create<RestReaction>();
|
_reactions = ImmutableArray.Create<RestReaction>();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
_reactions = ImmutableArray.Create<RestReaction>();
|
||||||
|
|
||||||
if (model.Content.IsSpecified)
|
if (model.Content.IsSpecified)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user