mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Fix
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user