From c5eb08f9af22da24eae10057adaafb0a5e72dfe9 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sat, 1 May 2021 11:13:31 +0200 Subject: [PATCH] add: ModifyThread --- src/types/channels/modify_thread.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/types/channels/modify_thread.ts diff --git a/src/types/channels/modify_thread.ts b/src/types/channels/modify_thread.ts new file mode 100644 index 000000000..629aea0c7 --- /dev/null +++ b/src/types/channels/modify_thread.ts @@ -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; +}