mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23: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 {boolean} [nsfw] Whether the channel is NSFW
|
||||||
* @property {number} [bitrate] The bitrate of the voice channel
|
* @property {number} [bitrate] The bitrate of the voice channel
|
||||||
* @property {number} [userLimit] The user limit of the channel
|
* @property {number} [userLimit] The user limit of the channel
|
||||||
|
* @property {?string} [rtcRegion] The RTC region of the channel
|
||||||
* @property {PartialOverwriteData[]} [permissionOverwrites]
|
* @property {PartialOverwriteData[]} [permissionOverwrites]
|
||||||
* Overwrites of the channel
|
* Overwrites of the channel
|
||||||
* @property {number} [rateLimitPerUser] The rate limit per user (slowmode) of the channel in seconds
|
* @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;
|
delete channel.userLimit;
|
||||||
channel.rate_limit_per_user = channel.rateLimitPerUser;
|
channel.rate_limit_per_user = channel.rateLimitPerUser;
|
||||||
delete channel.rateLimitPerUser;
|
delete channel.rateLimitPerUser;
|
||||||
|
channel.rtc_region = channel.rtcRegion;
|
||||||
|
delete channel.rtcRegion;
|
||||||
|
|
||||||
if (!channel.permissionOverwrites) continue;
|
if (!channel.permissionOverwrites) continue;
|
||||||
for (const overwrite of channel.permissionOverwrites) {
|
for (const overwrite of channel.permissionOverwrites) {
|
||||||
if (typeof overwrite.type === 'string') {
|
if (typeof overwrite.type === 'string') {
|
||||||
|
|||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -4708,6 +4708,7 @@ export interface PartialChannelData {
|
|||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
bitrate?: number;
|
bitrate?: number;
|
||||||
userLimit?: number;
|
userLimit?: number;
|
||||||
|
rtcRegion?: string | null;
|
||||||
permissionOverwrites?: PartialOverwriteData[];
|
permissionOverwrites?: PartialOverwriteData[];
|
||||||
rateLimitPerUser?: number;
|
rateLimitPerUser?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user