galactic-bot/structure/extensions/Role.js

17 lines
263 B
JavaScript
Raw Normal View History

const { Structures } = require('discord.js');
const Role = Structures.extend('Role', (Role) => {
class ExtendedRole extends Role {
get display() {
return this.name;
}
}
return ExtendedRole;
});
module.exports = Role;