diff --git a/commands/edit-image/tweet.js b/commands/edit-image/tweet.js index 93b80545..7ab1cbb3 100644 --- a/commands/edit-image/tweet.js +++ b/commands/edit-image/tweet.js @@ -151,7 +151,7 @@ module.exports = class TweetCommand extends Command { .get('https://api.twitter.com/1.1/users/show.json') .set({ Authorization: `Bearer ${this.token}` }) .query({ screen_name: user }); - const avatarRes = await request.get(body.profile_image_url_https); + const avatarRes = await request.get(body.profile_image_url_https.replace('_normal', '_bigger')); return { screenName: body.screen_name, name: body.name, diff --git a/commands/search/twitter.js b/commands/search/twitter.js index 031cea67..d48c2093 100644 --- a/commands/search/twitter.js +++ b/commands/search/twitter.js @@ -52,7 +52,7 @@ module.exports = class TwitterCommand extends Command { const embed = new MessageEmbed() .setColor(0x55ADEE) .setAuthor('Twitter', 'https://i.imgur.com/QnfcO7y.png', 'https://twitter.com/') - .setThumbnail(body.profile_image_url_https) + .setThumbnail(body.profile_image_url_https.replace('_normal', '')) .setURL(`https://twitter.com/${body.screen_name}`) .setTitle(`${body.name} (@${body.screen_name})`) .setDescription(body.description) diff --git a/package.json b/package.json index 192c86be..3ced08be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.30.4", + "version": "114.30.5", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {