diff --git a/package.json b/package.json index 3ebae601..5480c6cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "110.5.2", + "version": "110.5.3", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/commands/Subreddit.js b/structures/commands/Subreddit.js index 69ca5845..cc1ddbc0 100644 --- a/structures/commands/Subreddit.js +++ b/structures/commands/Subreddit.js @@ -55,7 +55,7 @@ module.exports = class SubredditCommand extends Command { async fetchIcon(subreddit) { const { body } = await request.get(`https://www.reddit.com/r/${subreddit}/about.json`); - if (!body.data.icon_img) return 'https://i.imgur.com/DSBOK0P.png'; - return body.data.icon_img; + if (!body.data.icon_img && !body.data.community_icon) return 'https://i.imgur.com/DSBOK0P.png'; + return body.data.icon_img || body.data.community_icon; } };