mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
fix: message coercion bug affecting vision
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run
This commit is contained in:
@@ -48,7 +48,7 @@ module.exports = class Messages {
|
||||
if ( whatis(message.content[i]) !== 'object' ) {
|
||||
throw new Error('each message content item must be a string or object');
|
||||
}
|
||||
if ( ! message.content[i].type ) {
|
||||
if ( typeof message.content[i].text === 'string' && ! message.content[i].type ) {
|
||||
message.content[i].type = 'text';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user