Skip to content

Commit 2d7d32d

Browse files
authored
Update API.md fix chat message handling (#575)
1 parent 0ed8e32 commit 2d7d32d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/API.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ client.on('text', (packet) => {
142142
// names and as explained in the "Protocol doc" section below, fields are all case sensitive!
143143
client.on('add_player', (packet) => {
144144
client.queue('text', {
145-
type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '',
145+
type: 'chat', needs_translation: false, source_name: client.username, xuid: '', platform_chat_id: '', filtered_message: '',
146146
message: `Hey, ${packet.username} just joined!`
147147
})
148148
})

0 commit comments

Comments
 (0)