21 lines
389 B
JavaScript
21 lines
389 B
JavaScript
const { Structures } = require('discord.js');
|
|
|
|
const TextChannel = Structures.extend('TextChannel', (TextChannel) => {
|
|
|
|
class ExtendedTextChannel extends TextChannel {
|
|
|
|
get display() {
|
|
return `#${this.name}`;
|
|
}
|
|
|
|
get mention() {
|
|
return `<#${this.id}>`;
|
|
}
|
|
|
|
}
|
|
|
|
return ExtendedTextChannel;
|
|
|
|
});
|
|
|
|
module.exports = TextChannel; |