pub const fn author_id(&self) -> Option<Id<UserMarker>> {
        if let Some(member) = &self.member {
            if let Some(user) = &member.user {
                return Some(user.id);
            }
        }

        if let Some(user) = &self.user {
            return Some(user.id);
        }

        None
    }
/// ID of the user that invoked the interaction.
///
/// This will first check for the [`member`]'s
/// [`user`][`PartialMember::user`]'s ID and, if not present, then check the
/// [`user`]'s ID.
///
/// [`member`]: Self::member
/// [`user`]: Self::user
ID of the user that invoked the interaction.


ID of the user that invoked the interaction .
pub const fn author_id(&self) -> Option<Id<UserMarker>> {
        if let Some(member) = &self.member {
            if let Some(user) = &member.user {
                return Some(user.id);
            }
        }
        if let Some(user) = &self.user {
            return Some(user.id);
        }
        None
    }
pub const fn author_id ( & self ) -> Option < Id < UserMarker > > { if let Some ( member ) = & self . member { if let Some ( user ) = & member . user { return Some ( user . id ) ; } } if let Some ( user ) = & self . user { return Some ( user . id ) ; } None }
ID of the user that invoked the interaction.
ID of the user that invoked the interaction .
&self