diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-09-02 19:12:47 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-09-02 19:12:47 -0400 |
commit | e4450c8417624b71d779cb4f41692538f9165e10 (patch) | |
tree | b70826542223ecdf8a7a259f61b0a1abb8a217d8 /node_modules/discord.js/src/structures/DirectoryChannel.js | |
download | sowbot3-e4450c8417624b71d779cb4f41692538f9165e10.tar.gz sowbot3-e4450c8417624b71d779cb4f41692538f9165e10.tar.bz2 sowbot3-e4450c8417624b71d779cb4f41692538f9165e10.zip |
first commit
Diffstat (limited to 'node_modules/discord.js/src/structures/DirectoryChannel.js')
-rw-r--r-- | node_modules/discord.js/src/structures/DirectoryChannel.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/node_modules/discord.js/src/structures/DirectoryChannel.js b/node_modules/discord.js/src/structures/DirectoryChannel.js new file mode 100644 index 0000000..870eff9 --- /dev/null +++ b/node_modules/discord.js/src/structures/DirectoryChannel.js @@ -0,0 +1,36 @@ +'use strict'; + +const { BaseChannel } = require('./BaseChannel'); + +/** + * Represents a channel that displays a directory of guilds. + * @extends {BaseChannel} + */ +class DirectoryChannel extends BaseChannel { + constructor(guild, data, client) { + super(client, data); + + /** + * The guild the channel is in + * @type {InviteGuild} + */ + this.guild = guild; + + /** + * The id of the guild the channel is in + * @type {Snowflake} + */ + this.guildId = guild.id; + } + + _patch(data) { + super._patch(data); + /** + * The channel's name + * @type {string} + */ + this.name = data.name; + } +} + +module.exports = DirectoryChannel; |