2020-08-14 08:29:58 +02:00
|
|
|
const { Structures } = require('discord.js');
|
|
|
|
|
|
|
|
const TextChannel = Structures.extend('TextChannel', (TextChannel) => {
|
|
|
|
|
|
|
|
class ExtendedTextChannel extends TextChannel {
|
|
|
|
|
|
|
|
get display() {
|
|
|
|
return `#${this.name}`;
|
|
|
|
}
|
|
|
|
|
2021-06-26 08:42:57 +02:00
|
|
|
get mention() {
|
|
|
|
return `<#${this.id}>`;
|
|
|
|
}
|
|
|
|
|
2020-08-14 08:29:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return ExtendedTextChannel;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = TextChannel;
|