mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Use import/export since we are using babel, removed unused imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
class Cache extends Array {
|
||||
export default class Cache extends Array {
|
||||
constructor(discrim, limit) {
|
||||
super();
|
||||
this.discrim = discrim || "id";
|
||||
@@ -61,7 +61,7 @@ class Cache extends Array {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
random() {
|
||||
return this[Math.floor(Math.random()*this.length)];
|
||||
}
|
||||
@@ -79,5 +79,3 @@ class Cache extends Array {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Cache;
|
||||
Reference in New Issue
Block a user