From ea5d0a50dec9ad934d2f35b348fecf6c716c0ee1 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 25 Nov 2019 23:21:30 +0100 Subject: [PATCH] send image without text --- commands/general/tweet.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/general/tweet.js b/commands/general/tweet.js index b3baf8b..54160a7 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -122,11 +122,15 @@ class tweetCommand extends Command { status: text }; - if (data) { + if (data && args.text) { options = { status: text, media_ids: new Array(data.media_id_string) }; + } else if (data) { + options = { + media_ids: new Array(data.media_id_string) + }; } T.post('statuses/update', options, function (err, response) {