mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Changed return type of Guild.defaultChannel (#1079)
The default channel for a Guild is always the first TextChannel in the Guild, it can't be a VoiceChannel.
This commit is contained in:
@@ -278,8 +278,8 @@ class Guild {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `#general` GuildChannel of the server.
|
* The `#general` TextChannel of the server.
|
||||||
* @type {GuildChannel}
|
* @type {TextChannel}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get defaultChannel() {
|
get defaultChannel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user