mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Added cache.random() and node engine to package.json
This commit is contained in:
@@ -61,6 +61,10 @@ class Cache extends Array {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
random() {
|
||||
return this[Math.floor(Math.random()*this.length)];
|
||||
}
|
||||
|
||||
remove(data) {
|
||||
var index = this.indexOf(data);
|
||||
|
||||
Reference in New Issue
Block a user