API v10InterfacesRESTPutAPIGuildBanJSONBodyVersion: 0.37.79On this pageRESTPutAPIGuildBanJSONBody https://discord.com/developers/docs/resources/guild#create-guild-banIndex Propertiesdelete_message_daysdelete_message_secondsProperties 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)
https://discord.com/developers/docs/resources/guild#create-guild-ban