@@ -6,7 +6,7 @@ use crate::model::prelude::*;
66
77/// A builder for editing guild incident actions.
88///
9- /// [Discord's docs]: https://github .com/discord/discord-api- docs/pull/6396
9+ /// [Discord's docs]: https://discord .com/developers/ docs/resources/guild#modify-guild-incident-actions
1010#[ derive( Clone , Debug , Default , Serialize ) ]
1111#[ must_use]
1212pub struct EditGuildIncidentActions {
@@ -19,15 +19,15 @@ impl EditGuildIncidentActions {
1919 Self :: default ( )
2020 }
2121
22- /// Sets the time invites to the guild will be disabled until. Must be no further than 1 day in
23- /// the future.
22+ /// Sets the time until which guild invites will remain disabled, which can be at most 24 hours
23+ /// in the future.
2424 pub fn invites_disabled_until ( mut self , timestamp : Timestamp ) -> Self {
2525 self . invites_disabled_until = Some ( timestamp) ;
2626 self
2727 }
2828
29- /// Sets the time dms for users within the guild will be disabled until. Must be no further
30- /// than 1 day in the future.
29+ /// Sets the time at which direct messages for users within the guild will remain disabled,
30+ /// which can be at most 24 hours in the future.
3131 pub fn dms_disabled_until ( mut self , timestamp : Timestamp ) -> Self {
3232 self . dms_disabled_until = Some ( timestamp) ;
3333 self
@@ -41,8 +41,6 @@ impl EditGuildIncidentActions {
4141 /// Returns [`Error::Http`] if invalid data is given. See [Discord's docs] for more details.
4242 ///
4343 /// May also return [`Error::Json`] if there is an error in deserializing the API response.
44- ///
45- /// [Discord's docs]: https://github.com/discord/discord-api-docs/pull/6396
4644 #[ cfg( feature = "http" ) ]
4745 pub async fn execute ( self , http : & Http , guild_id : GuildId ) -> Result < IncidentsData > {
4846 http. edit_guild_incident_actions ( guild_id, & self ) . await
0 commit comments