diff --git a/deno/rest/v10/guild.ts b/deno/rest/v10/guild.ts index af48e7981..79e67cb95 100644 --- a/deno/rest/v10/guild.ts +++ b/deno/rest/v10/guild.ts @@ -573,8 +573,14 @@ export type RESTGetAPIGuildBanResult = APIBan; export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Number of days to delete messages for (0-7) + * + * @deprecated use `delete_message_seconds` instead */ delete_message_days?: number; + /** + * Number of seconds to delete messages for, between 0 and 604800 (7 days) + */ + delete_message_seconds?: number; }>; /** diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index d8f6a5491..9adb3a834 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -573,8 +573,14 @@ export type RESTGetAPIGuildBanResult = APIBan; export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Number of days to delete messages for (0-7) + * + * @deprecated use `delete_message_seconds` instead */ delete_message_days?: number; + /** + * Number of seconds to delete messages for, between 0 and 604800 (7 days) + */ + delete_message_seconds?: number; /** * Reason for the ban * diff --git a/rest/v10/guild.ts b/rest/v10/guild.ts index 3a074d16c..19c76bd40 100644 --- a/rest/v10/guild.ts +++ b/rest/v10/guild.ts @@ -573,8 +573,14 @@ export type RESTGetAPIGuildBanResult = APIBan; export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Number of days to delete messages for (0-7) + * + * @deprecated use `delete_message_seconds` instead */ delete_message_days?: number; + /** + * Number of seconds to delete messages for, between 0 and 604800 (7 days) + */ + delete_message_seconds?: number; }>; /** diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index 550469f14..6f12573da 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -573,8 +573,14 @@ export type RESTGetAPIGuildBanResult = APIBan; export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Number of days to delete messages for (0-7) + * + * @deprecated use `delete_message_seconds` instead */ delete_message_days?: number; + /** + * Number of seconds to delete messages for, between 0 and 604800 (7 days) + */ + delete_message_seconds?: number; /** * Reason for the ban *