/// Try to replace the root identity with the discord token.
/// Return true on success.
/// See [`Self::replace_root_with_github`].
Try to replace the root identity with the discord token.
Return true on success.
Try to replace the root identity with the discord token . Return true on success .
fn replace_root_with_discord(&mut self) -> bool {
        if self.discord.is_some() {
            self.root = RootIdentity::Discord(self.discord.take().unwrap());
            return true;
        }
        return false;
    }
fn replace_root_with_discord ( & mut self ) -> bool { if self . discord . is_some ( ) { self . root = RootIdentity :: Discord ( self . discord . take ( ) . unwrap ( ) ) ; return true ; } return false ; }
Try to replace the root identity with the discord token.
Try to replace the root identity with the discord token .
&mut self