.applyEditPatch(data)
data: APIChannel → void
channel.applyEditPatch(data);Class
A voice channel in a guild. Voice is text-capable on Fluxer.
Extends TextCapable(GuildChannel)
new VoiceChannel(client: Client, data: APIChannel)ClientAPIChannel| Name | Type | Description |
|---|---|---|
| bitrate? | number | null | Voice bitrate. |
| contentWarningLevel? | number | null | Content warning level. |
| contentWarningText? | string | null | Custom content warning text. |
| guildIdread-only | string | Guild ID. Voice channels always belong to a guild. |
| lastMessageId? | string | null | ID of the last message sent in this channel. |
| nsfw? | boolean | Whether this channel is marked as NSFW. |
| nsfwOverride? | boolean | null | Per-channel NSFW override (null inherits). |
| rateLimitPerUser? | number | Slowmode rate limit in seconds. |
| rtcRegion? | string | null | RTC region override for this channel. |
| topic? | string | null | Channel topic. |
| userLimit? | number | null | Maximum number of users allowed. |
| voiceConnectionLimit? | number | null | Max active voice connections per user. |
data: APIChannel → void
channel.applyEditPatch(data);seconds: number → Promise<this>
Set slowmode (seconds between messages). Pass 0 to disable. Requires Manage Channels. Calls channel.edit with rateLimitPerUser.
await channel.setSlowmode(seconds);