galactic-bot/structure/extensions/TextChannel.js

17 lines
318 B
JavaScript
Raw Normal View History

const { Structures } = require('discord.js');
const TextChannel = Structures.extend('TextChannel', (TextChannel) => {
class ExtendedTextChannel extends TextChannel {
get display() {
return `#${this.name}`;
}
}
return ExtendedTextChannel;
});
module.exports = TextChannel;