mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
add: ModifyThread
This commit is contained in:
12
src/types/channels/modify_thread.ts
Normal file
12
src/types/channels/modify_thread.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export interface ModifyThread {
|
||||
/** 2-100 character thread name */
|
||||
name?: string;
|
||||
/** Whether the thread is archived */
|
||||
archived?: boolean;
|
||||
/** Duration in minutes to automatically archive the thread after recent activity */
|
||||
autoArchiveDuration?: 60 | 1440 | 4320 | 10080;
|
||||
/** When a thread is locked, only users with `MANAGE_THREADS` can unarchive it */
|
||||
locked?: boolean;
|
||||
/** Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission `MANAGE_MESSAGES`, `MANAGE_THREAD` or `MANAGE_CHANNEL` are unaffected */
|
||||
rateLimitPerUser?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user