26 lines
447 B
JavaScript
26 lines
447 B
JavaScript
const { Structures } = require('discord.js');
|
|
|
|
const GuildMember = Structures.extend('GuildMember', (GuildMember) => {
|
|
|
|
class ExtendedGuildMember extends GuildMember {
|
|
|
|
constructor(...args) {
|
|
|
|
super(...args);
|
|
|
|
this._cached = Date.now();
|
|
|
|
}
|
|
|
|
get timeSinceCached() {
|
|
return Date.now()-this._cached;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
return ExtendedGuildMember;
|
|
|
|
});
|
|
|
|
module.exports = GuildMember; |