pub struct EditGuildIncidentActions { /* private fields */ }Expand description
A builder for editing guild incident actions.
Implementations§
Source§impl EditGuildIncidentActions
impl EditGuildIncidentActions
pub fn new() -> Self
Sourcepub fn invites_disabled_until(self, timestamp: Timestamp) -> Self
pub fn invites_disabled_until(self, timestamp: Timestamp) -> Self
Sets the time until which guild invites will remain disabled, which can be at most 24 hours in the future.
Sourcepub fn dms_disabled_until(self, timestamp: Timestamp) -> Self
pub fn dms_disabled_until(self, timestamp: Timestamp) -> Self
Sets the time at which direct messages for users within the guild will remain disabled, which can be at most 24 hours in the future.
Sourcepub async fn execute(
self,
http: &Http,
guild_id: GuildId,
) -> Result<IncidentsData>
pub async fn execute( self, http: &Http, guild_id: GuildId, ) -> Result<IncidentsData>
Modifies the guild’s incident actions.
§Errors
Returns Error::Http if invalid data is given. See [Discord’s docs] for more details.
May also return Error::Json if there is an error in deserializing the API response.
Trait Implementations§
Source§impl Clone for EditGuildIncidentActions
impl Clone for EditGuildIncidentActions
Source§fn clone(&self) -> EditGuildIncidentActions
fn clone(&self) -> EditGuildIncidentActions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditGuildIncidentActions
impl Debug for EditGuildIncidentActions
Source§impl Default for EditGuildIncidentActions
impl Default for EditGuildIncidentActions
Source§fn default() -> EditGuildIncidentActions
fn default() -> EditGuildIncidentActions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditGuildIncidentActions
impl RefUnwindSafe for EditGuildIncidentActions
impl Send for EditGuildIncidentActions
impl Sync for EditGuildIncidentActions
impl Unpin for EditGuildIncidentActions
impl UnwindSafe for EditGuildIncidentActions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more