mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
feat: Add rtcRegion to GuildManager#create() (#6858)
This commit is contained in:
@@ -91,6 +91,7 @@ class GuildManager extends CachedManager {
|
||||
* @property {boolean} [nsfw] Whether the channel is NSFW
|
||||
* @property {number} [bitrate] The bitrate of the voice channel
|
||||
* @property {number} [userLimit] The user limit of the channel
|
||||
* @property {?string} [rtcRegion] The RTC region of the channel
|
||||
* @property {PartialOverwriteData[]} [permissionOverwrites]
|
||||
* Overwrites of the channel
|
||||
* @property {number} [rateLimitPerUser] The rate limit per user (slowmode) of the channel in seconds
|
||||
@@ -196,6 +197,9 @@ class GuildManager extends CachedManager {
|
||||
delete channel.userLimit;
|
||||
channel.rate_limit_per_user = channel.rateLimitPerUser;
|
||||
delete channel.rateLimitPerUser;
|
||||
channel.rtc_region = channel.rtcRegion;
|
||||
delete channel.rtcRegion;
|
||||
|
||||
if (!channel.permissionOverwrites) continue;
|
||||
for (const overwrite of channel.permissionOverwrites) {
|
||||
if (typeof overwrite.type === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user