This commit is contained in:
Daniel Odendahl Jr
2018-10-04 23:35:58 +00:00
parent 1f1708536c
commit 7c86db4325
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = class SubredditCommand extends Command {
super(client, info);
this.subreddit = info.subreddit;
this.postType = Array.isArray(info.postType) ? info.postType : [info.postType];
this.postType = info.postType ? Array.isArray(info.postType) ? info.postType : [info.postType] : null;
}
async run(msg, { subreddit }) {