Skip to content

Commit 9c9d085

Browse files
committed
Update MessageUpdate.js
1 parent f44fbe6 commit 9c9d085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/actions/MessageUpdate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class MessageUpdateAction extends Action {
77

88
const channel = client.channels.get(data.channel_id);
99
if (channel) {
10-
const message = channel.messages.get(data.id);
10+
const message = channel.messages?.get(data.id);
1111
if (message) {
1212
message.patch(data);
1313
client.emit(Constants.Events.MESSAGE_UPDATE, message._edits[0], message);

0 commit comments

Comments
 (0)