SubredditCommand structure

This commit is contained in:
Daniel Odendahl Jr
2018-09-21 11:06:07 +00:00
parent 92b9ea1fff
commit f58f677e12
6 changed files with 75 additions and 66 deletions
+4
View File
@@ -20,6 +20,10 @@ module.exports = class ImgurAlbumCommand extends Command {
}
}
generateText() {
throw new Error('The generateText method is required.');
}
async random() {
if (this.cache) return this.cache[Math.floor(Math.random() * this.cache.length)];
const { body } = await request