API v9InterfacesRESTPutAPIGuildBanJSONBodyVersion: 0.37.42On this pageRESTPutAPIGuildBanJSONBody https://discord.com/developers/docs/resources/guild#create-guild-banIndex Propertiesdelete_message_daysdelete_message_secondsreasonProperties optionaldelete_message_daysdelete_message_days?: numberNumber of days to delete messages for (0-7)@deprecateduse delete_message_seconds insteadoptionaldelete_message_secondsdelete_message_seconds?: numberNumber of seconds to delete messages for, between 0 and 604800 (7 days)optionalreasonreason?: stringReason for the ban@deprecatedRemoved in API v10, use the X-Audit-Log-Reason header instead.
https://discord.com/developers/docs/resources/guild#create-guild-ban