docs(types): update slowmode-bypassing permission information in the channel object (#4980)

Co-authored-by: Fleny <Fleny113@outlook.com>
This commit is contained in:
Awesome Stickz
2026-04-22 23:23:19 +05:30
committed by GitHub
parent ff1a349e1a
commit b52313edbc
4 changed files with 4 additions and 4 deletions

View File

@@ -441,7 +441,7 @@ export interface Channel {
bitrate?: number;
/** The user limit of the voice or stage channel */
userLimit?: number;
/** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `manage_messages` or `manage_channel`, are unaffected */
/** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `BYPASS_SLOWMODE`, are unaffected */
rateLimitPerUser?: number;
/** Id of the creator of the thread */
ownerId?: bigint;

View File

@@ -47,7 +47,7 @@ export interface DiscordChannel extends Partial<DiscordThreadCreateExtra> {
* Amount of seconds a user has to wait before sending another message (0-21600)
*
* @remarks
* Bots, as well as users with the permission `manage_messages` or `manage_channel`, are unaffected
* Bots, as well as users with the permission `BYPASS_SLOWMODE`, are unaffected
* `rate_limit_per_user` also applies to thread creation. Users can send one message and create one thread during each `rate_limit_per_user` interval.
*/
rate_limit_per_user?: number;

View File

@@ -107,7 +107,7 @@ export interface ModifyChannel {
* Amount of seconds a user has to wait before sending another message in seconds (0-21600)
*
* @remarks
* Bots and users with the permission `MANAGE_MESSAGES` or `MANAGE_CHANNEL`, are unaffected
* Bots and users with the permission `BYPASS_SLOWMODE`, are unaffected
*
* This is only valid when editing a guild channel of type {@link ChannelTypes.GuildText}, {@link ChannelTypes.GuildVoice}, {@link ChannelTypes.GuildStageVoice} {@link ChannelTypes.GuildForum} or {@link ChannelTypes.GuildMedia}, or a thread.
*/

View File

@@ -74,7 +74,7 @@ export interface CreateGuildChannel {
bitrate?: number;
/** The user limit of the voice channel (voice only) */
userLimit?: number;
/** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `manage_messages` or `manage_channel`, are unaffected */
/** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `BYPASS_SLOWMODE`, are unaffected */
rateLimitPerUser?: number;
/** Sorting position of the channel (channels with the same position are sorted by id) */
position?: number;