fix: pass client reference correctly (#3296)
This commit is contained in:
parent
6e5325867d
commit
289b354285
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ class Chat extends Base {
|
||||||
* Last message fo chat
|
* Last message fo chat
|
||||||
* @type {Message}
|
* @type {Message}
|
||||||
*/
|
*/
|
||||||
this.lastMessage = data.lastMessage ? new Message(super.client, data.lastMessage) : undefined;
|
this.lastMessage = data.lastMessage ? new Message(this.client, data.lastMessage) : undefined;
|
||||||
|
|
||||||
return super._patch(data);
|
return super._patch(data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue