mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
feat(ban): accept delete_message_seconds and app options (#2086)
This commit is contained in:
1 parent
9f099a9127
commit
805acf4e5e
48 files changed
+1358
-121
No files matched your search
@@ -292,7 +292,16 @@ export const GuildBanCreateRequest = z.object({
|
||||
.min(0)
|
||||
.max(7)
|
||||
.default(0)
|
||||
.describe('Number of days of messages to delete from the banned user (0-7)'),
|
||||
.describe(
|
||||
'Number of days of messages to delete from the banned user (0-7). Deprecated in favor of delete_message_seconds.',
|
||||
),
|
||||
delete_message_seconds: z
|
||||
.number()
|
||||
.int()
|
||||
.min(0)
|
||||
.max(604800)
|
||||
.optional()
|
||||
.describe('Number of seconds of messages to delete for the banned user (0-604800, default 0)'),
|
||||
reason: createStringType(0, 512).nullish().describe('The reason for the ban (max 512 characters)'),
|
||||
ban_duration_seconds: z
|
||||
.number()
|
||||
|
||||
Reference in new issue
Block a user