mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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.
|
||||
* @type {GuildChannel}
|
||||
* The `#general` TextChannel of the server.
|
||||
* @type {TextChannel}
|
||||
* @readonly
|
||||
*/
|
||||
get defaultChannel() {
|
||||
|
||||
Reference in New Issue
Block a user